From fea0cb0b22f97bfcb4ebaae7b7858ddc7d14e783 Mon Sep 17 00:00:00 2001 From: Jason Varga Date: Fri, 4 Sep 2020 18:35:41 -0400 Subject: [PATCH] Collections are loopable --- src/View/Antlers/Parser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/View/Antlers/Parser.php b/src/View/Antlers/Parser.php index cef54dfa1f..072b60f2b1 100644 --- a/src/View/Antlers/Parser.php +++ b/src/View/Antlers/Parser.php @@ -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; }