diff --git a/lib/BladeOne.php b/lib/BladeOne.php index d7f1957..21d35b0 100644 --- a/lib/BladeOne.php +++ b/lib/BladeOne.php @@ -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). */