From 8fdcce62d0bddb621011e7336ce349a2df95353c Mon Sep 17 00:00:00 2001 From: David McReynolds Date: Wed, 3 Jun 2020 10:08:05 -0700 Subject: [PATCH] fix: fix: php 7.4 each deprecation warning for Dwoo if block --- .../fuel/libraries/parser/dwoo/plugins/builtin/blocks/if.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fuel/modules/fuel/libraries/parser/dwoo/plugins/builtin/blocks/if.php b/fuel/modules/fuel/libraries/parser/dwoo/plugins/builtin/blocks/if.php index fee857433..e718172c4 100755 --- a/fuel/modules/fuel/libraries/parser/dwoo/plugins/builtin/blocks/if.php +++ b/fuel/modules/fuel/libraries/parser/dwoo/plugins/builtin/blocks/if.php @@ -38,7 +38,8 @@ public static function replaceKeywords(array $params, array $tokens, Dwoo_Compil $p = array(); reset($params); - while (list($k,$v) = each($params)) { + //while (list($k,$v) = each($params)) { + foreach ($params as $k => $v) { $v = (string) $v; if(substr($v, 0, 1) === '"' || substr($v, 0, 1) === '\'') { $vmod = strtolower(substr($v, 1, -1));