Skip to content

Commit

Permalink
Collections are loopable
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonvarga committed Sep 4, 2020
1 parent ea6759e commit fea0cb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/View/Antlers/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -1410,7 +1410,7 @@ protected function runModifier($modifier, $data, $parameters, $context = [])

protected function isLoopable($value)
{
if (is_array($value)) {
if (is_array($value) || $value instanceof Collection) {
return true;
}

Expand Down

0 comments on commit fea0cb0

Please sign in to comment.