projects
/
web/konrad/twig.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
3e50672
)
Get rid of naming clash
author
jeroendedauw
<jeroendedauw@gmail.com>
Wed, 30 Jul 2014 20:49:24 +0000 (22:49 +0200)
committer
jeroendedauw
<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
patch
|
blob
|
history
diff --git
a/lib/Twig/Compiler.php
b/lib/Twig/Compiler.php
index
ee00519
..
1796e40
100644
(file)
--- 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 {