Skip to content

Commit

Permalink
🩹 Fix potential invalid offset type (Fixes #58)
Browse files Browse the repository at this point in the history
  • Loading branch information
Log1x committed Jun 6, 2024
1 parent 41cb9a3 commit f356231
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Concerns/Palette.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function palette($color = null)
]);
}

return ! empty($color) ? (
return ! empty($color) && is_string($color) ? (
$colors[$color] ?? null
) : $colors;
}
Expand Down

0 comments on commit f356231

Please sign in to comment.