From: jeroendedauw Date: Wed, 30 Jul 2014 20:49:24 +0000 (+0200) Subject: Get rid of naming clash X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=d8e1077fd175e0a8c03e13a329b250d9b6bcb589;p=web%2Fkonrad%2Ftwig.git Get rid of naming clash Static code analysis tool did not like this. Looks like it was wrong before. Tests unchanged though. --- diff --git a/lib/Twig/Compiler.php b/lib/Twig/Compiler.php index ee00519..1796e40 100644 --- a/lib/Twig/Compiler.php +++ b/lib/Twig/Compiler.php @@ -181,14 +181,14 @@ class Twig_Compiler implements Twig_CompilerInterface } elseif (is_array($value)) { $this->raw('array('); $first = true; - foreach ($value as $key => $value) { + foreach ($value as $key => $v) { if (!$first) { $this->raw(', '); } $first = false; $this->repr($key); $this->raw(' => '); - $this->repr($value); + $this->repr($v); } $this->raw(')'); } else {