mirror of
https://github.com/Mibew/handlebars.php-helpers.git
synced 2025-03-14 09:44:11 +03:00
Improve exception message in "repeat" helper
This commit is contained in:
parent
2455d3d269
commit
8c6c345235
@ -45,7 +45,7 @@ class RepeatHelper implements HelperInterface
|
||||
$times = intval($context->get($parsed_args[0]));
|
||||
if ($times < 0) {
|
||||
throw new \InvalidArgumentException(
|
||||
'The first argument has to be greater than or equal to 0.'
|
||||
'The first argument of "repeat" helper has to be greater than or equal to 0.'
|
||||
);
|
||||
}
|
||||
$string = $template->render($context);
|
||||
|
Loading…
Reference in New Issue
Block a user