From a9b9c89f8876572e453880ef40113812455c8ed2 Mon Sep 17 00:00:00 2001 From: bzick Date: Tue, 10 Feb 2015 14:30:31 +0300 Subject: [PATCH] Fix bug: unexpected array conversion when object given to {foreach} with force verify option --- src/Fenom/Compiler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Fenom/Compiler.php b/src/Fenom/Compiler.php index 4b11604..235dfb6 100644 --- a/src/Fenom/Compiler.php +++ b/src/Fenom/Compiler.php @@ -142,7 +142,7 @@ class Compiler $check = '!empty('.$from.')'; } else { $scope["var"] = $scope->tpl->tmpVar(); - $prepend = $scope["var"].' = (array)('.$from.');'; + $prepend = $scope["var"].' = '.$from.';'; $from = $check = $scope["var"]; } } elseif ($tokens->is('[')) {