mirror of
https://github.com/Mibew/handlebars.php-helpers.git
synced 2025-03-22 13:41:27 +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]));
|
$times = intval($context->get($parsed_args[0]));
|
||||||
if ($times < 0) {
|
if ($times < 0) {
|
||||||
throw new \InvalidArgumentException(
|
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);
|
$string = $template->render($context);
|
||||||
|
Loading…
Reference in New Issue
Block a user