Skip to content

Commit 5592aa5

Browse files
committed
Fixed an error when passing an array to addAssetDict
1 parent 896764d commit 5592aa5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/BladeOne.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ class BladeOne
187187
/** @var string it is a relative path calculated between baseUrl and the current url. Example ../../ */
188188
protected string $relativePath = '';
189189
/** @var string[] Dictionary of assets */
190-
protected ?array $assetDict;
190+
protected array $assetDict = [];
191191
/** @var bool if true then it removes tabs and unneeded spaces */
192192
protected bool $optimize = true;
193193
/** @var bool if false, then the template is not compiled (but executed on memory). */

0 commit comments

Comments
 (0)