Explorar el Código

[Templating] cleaned up some anomalies in the engine

Kris Wallsmith hace 14 años
padre
commit
c5fe4c390d
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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);