Skip to content

Commit fea0cb0

Browse files
committed
Collections are loopable
1 parent ea6759e commit fea0cb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/View/Antlers/Parser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1410,7 +1410,7 @@ protected function runModifier($modifier, $data, $parameters, $context = [])
14101410

14111411
protected function isLoopable($value)
14121412
{
1413-
if (is_array($value)) {
1413+
if (is_array($value) || $value instanceof Collection) {
14141414
return true;
14151415
}
14161416

0 commit comments

Comments
 (0)