From dd010adf2dba3b37acbd5b9bb1dc0ac7ffda7073 Mon Sep 17 00:00:00 2001 From: Jeremy Dunn <161614+JeremyDunn@users.noreply.github.com> Date: Fri, 10 Jan 2025 16:15:55 -0600 Subject: [PATCH] Update AssetNotFoundException to accept $assetParam as array --- src/AssetNotFoundException.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/AssetNotFoundException.php b/src/AssetNotFoundException.php index 24a9088..a89488b 100644 --- a/src/AssetNotFoundException.php +++ b/src/AssetNotFoundException.php @@ -8,6 +8,10 @@ class AssetNotFoundException extends Exception { public static function create($assetParam) { + if (is_array($assetParam)) { + $assetParam = $assetParam['url'] ?? ''; + } + return new self("Could not find asset {$assetParam}"); } }