Skip to content

Commit b56b61d

Browse files
Merge pull request #39 from kohenkatz/patch-1
fix PHP 8.2 deprecations
2 parents 658bc71 + 9ef0021 commit b56b61d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/Compilers/HandlebarsCompiler.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ class HandlebarsCompiler extends Compiler implements CompilerInterface
2626
/** @var bool */
2727
protected $translateRawOutput = true;
2828

29+
/** @var array */
30+
protected $options;
31+
2932
/**
3033
* Create a new compiler instance.
3134
*

src/Engines/HandlebarsEngine.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function get($path, array $data = array())
2828
$compiled = $this->compiler->getCompiledPath($path, $raw);
2929

3030
// convert objects to arrays
31-
$data = array_map('self::convertObjectToArray', $data);
31+
$data = array_map([$this, 'convertObjectToArray'], $data);
3232

3333
// Once we have the path to the compiled file, we will evaluate the paths with
3434
// typical PHP just like any other templates. We also keep a stack of views

0 commit comments

Comments
 (0)