diff --git a/src/Compilers/HandlebarsCompiler.php b/src/Compilers/HandlebarsCompiler.php index 4abea16..ec378ff 100644 --- a/src/Compilers/HandlebarsCompiler.php +++ b/src/Compilers/HandlebarsCompiler.php @@ -26,6 +26,9 @@ class HandlebarsCompiler extends Compiler implements CompilerInterface /** @var bool */ protected $translateRawOutput = true; + /** @var array */ + protected $options; + /** * Create a new compiler instance. * diff --git a/src/Engines/HandlebarsEngine.php b/src/Engines/HandlebarsEngine.php index 1fc6f94..3f84622 100644 --- a/src/Engines/HandlebarsEngine.php +++ b/src/Engines/HandlebarsEngine.php @@ -28,7 +28,7 @@ public function get($path, array $data = array()) $compiled = $this->compiler->getCompiledPath($path, $raw); // convert objects to arrays - $data = array_map('self::convertObjectToArray', $data); + $data = array_map([$this, 'convertObjectToArray'], $data); // Once we have the path to the compiled file, we will evaluate the paths with // typical PHP just like any other templates. We also keep a stack of views