Get rid of naming clash
authorjeroendedauw <jeroendedauw@gmail.com>
Wed, 30 Jul 2014 20:49:24 +0000 (22:49 +0200)
committerjeroendedauw <jeroendedauw@gmail.com>
Thu, 31 Jul 2014 08:38:31 +0000 (10:38 +0200)
Static code analysis tool did not like this.
Looks like it was wrong before. Tests unchanged though.

lib/Twig/Compiler.php

index ee00519..1796e40 100644 (file)
@@ -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 {