mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-15 03:46:39 +00:00
Fix CS
This commit is contained in:
@@ -329,7 +329,7 @@ final class CoreExtension extends AbstractExtension
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!\count($values)) {
|
if (!\count($values)) {
|
||||||
throw new RuntimeError('The "cycle" function does not work on empty arrays');
|
throw new RuntimeError('The "cycle" function does not work on empty arrays.');
|
||||||
}
|
}
|
||||||
|
|
||||||
return $values[$position % \count($values)];
|
return $values[$position % \count($values)];
|
||||||
|
|||||||
@@ -5,4 +5,4 @@
|
|||||||
--DATA--
|
--DATA--
|
||||||
return []
|
return []
|
||||||
--EXCEPTION--
|
--EXCEPTION--
|
||||||
Twig\Error\RuntimeError: The "cycle" function does not work on empty arrays in "index.twig" at line 2
|
Twig\Error\RuntimeError: The "cycle" function does not work on empty arrays in "index.twig" at line 2.
|
||||||
|
|||||||
Reference in New Issue
Block a user