From 31800de88f7b240a013cb98396a371db2ef935ed Mon Sep 17 00:00:00 2001 From: Dan Miller Date: Fri, 4 Apr 2014 20:42:56 +0000 Subject: [PATCH] removing unnecessary local variable in findFromParent function --- src/Mustache/Context.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Mustache/Context.php b/src/Mustache/Context.php index fbb22e0..58461e5 100644 --- a/src/Mustache/Context.php +++ b/src/Mustache/Context.php @@ -122,8 +122,7 @@ class Mustache_Context public function findFromParent($id) { - $stack = $this->stack; - foreach($stack as $context) { + foreach($this->stack as $context) { if (is_array($context) && array_key_exists($id, $context)) { return $context[$id]; }