Skip to content

Commit

Permalink
Merge pull request #188 from F-ini-ST/bugfix/addAssetDict-array-fix
Browse files Browse the repository at this point in the history
Fixed an error when passing an array to addAssetDict
  • Loading branch information
jorgecc authored Oct 8, 2024
2 parents 78fe2ee + 5592aa5 commit 74afaa9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/BladeOne.php
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ class BladeOne
/** @var string it is a relative path calculated between baseUrl and the current url. Example ../../ */
protected string $relativePath = '';
/** @var string[] Dictionary of assets */
protected ?array $assetDict;
protected array $assetDict = [];
/** @var bool if true then it removes tabs and unneeded spaces */
protected bool $optimize = true;
/** @var bool if false, then the template is not compiled (but executed on memory). */
Expand Down

0 comments on commit 74afaa9

Please sign in to comment.