Skip to content

Commit 74afaa9

Browse files
authored
Merge pull request #188 from F-ini-ST/bugfix/addAssetDict-array-fix
Fixed an error when passing an array to addAssetDict
2 parents 78fe2ee + 5592aa5 commit 74afaa9

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
@@ -189,7 +189,7 @@ class BladeOne
189189
/** @var string it is a relative path calculated between baseUrl and the current url. Example ../../ */
190190
protected string $relativePath = '';
191191
/** @var string[] Dictionary of assets */
192-
protected ?array $assetDict;
192+
protected array $assetDict = [];
193193
/** @var bool if true then it removes tabs and unneeded spaces */
194194
protected bool $optimize = true;
195195
/** @var bool if false, then the template is not compiled (but executed on memory). */

0 commit comments

Comments
 (0)