From f356231ee29333e880e23a8469d8d28284f99fe5 Mon Sep 17 00:00:00 2001 From: Brandon Date: Wed, 5 Jun 2024 21:48:41 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20Fix=20potential=20invalid=20offs?= =?UTF-8?q?et=20type=20(Fixes=20#58)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Concerns/Palette.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Concerns/Palette.php b/src/Concerns/Palette.php index 5264f5a..a296b86 100644 --- a/src/Concerns/Palette.php +++ b/src/Concerns/Palette.php @@ -44,7 +44,7 @@ public function palette($color = null) ]); } - return ! empty($color) ? ( + return ! empty($color) && is_string($color) ? ( $colors[$color] ?? null ) : $colors; }