From d8e1077fd175e0a8c03e13a329b250d9b6bcb589 Mon Sep 17 00:00:00 2001 From: jeroendedauw Date: Wed, 30 Jul 2014 22:49:24 +0200 Subject: [PATCH] Get rid of naming clash Static code analysis tool did not like this. Looks like it was wrong before. Tests unchanged though. --- lib/Twig/Compiler.php | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) 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 { -- 1.7.2.5