Browse Source

[Templating] cleaned up some anomalies in the engine

Kris Wallsmith 14 years ago
parent
commit
c5fe4c390d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/Symfony/Component/Templating/PhpEngine.php

+ 2 - 2
src/Symfony/Component/Templating/PhpEngine.php

@@ -172,7 +172,7 @@ class PhpEngine implements EngineInterface, \ArrayAccess
      */
     public function offsetGet($name)
     {
-        return $this->$name = $this->get($name);
+        return $this->get($name);
     }
 
     /**
@@ -211,7 +211,7 @@ class PhpEngine implements EngineInterface, \ArrayAccess
     /**
      * @param Helper[] $helpers An array of helper
      */
-    public function addHelpers(array $helpers = array())
+    public function addHelpers(array $helpers)
     {
         foreach ($helpers as $alias => $helper) {
             $this->set($helper, is_int($alias) ? null : $alias);