mirror of
https://github.com/fenom-template/fenom.git
synced 2023-08-10 21:13:07 +03:00
Small improve
This commit is contained in:
@ -261,9 +261,6 @@ class Compiler
|
||||
$p = $scope->tpl->parseParams($tokens, $p);
|
||||
|
||||
if (is_numeric($p["step"])) {
|
||||
if($p['to'] === false) {
|
||||
throw new InvalidArgumentException("Invalid value for parameter 'to'");
|
||||
}
|
||||
if ($p["step"] > 0) {
|
||||
$condition = "$var <= {$p['to']}";
|
||||
if ($p["last"]) {
|
||||
|
Reference in New Issue
Block a user