This commit is contained in:
Fabien Potencier
2024-04-30 15:28:33 +02:00
parent c2fc437f6a
commit fa714ce6bd
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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)];
+1 -1
View File
@@ -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.