mirror of
https://github.com/twigphp/Twig.git
synced 2026-08-30 20:16:45 +00:00
Fix CS
This commit is contained in:
@@ -329,7 +329,7 @@ final class CoreExtension extends AbstractExtension
|
||||
}
|
||||
|
||||
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)];
|
||||
|
||||
@@ -5,4 +5,4 @@
|
||||
--DATA--
|
||||
return []
|
||||
--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