Skip to content

Commit

Permalink
fix: fix: php 7.4 each deprecation warning for Dwoo if block
Browse files Browse the repository at this point in the history
  • Loading branch information
David McReynolds committed Jun 3, 2020
1 parent b2b9497 commit 8fdcce6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 8fdcce6

Please sign in to comment.