From 5592aa55e09c9db33b7de44eb0381c0c632951ac Mon Sep 17 00:00:00 2001 From: finist Date: Wed, 1 May 2024 00:34:21 +0300 Subject: [PATCH] Fixed an error when passing an array to addAssetDict --- lib/BladeOne.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/BladeOne.php b/lib/BladeOne.php index bd57139..2e44743 100644 --- a/lib/BladeOne.php +++ b/lib/BladeOne.php @@ -187,7 +187,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). */