We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
colors
1 parent 4c313b0 commit 202653cCopy full SHA for 202653c
src/Concerns/Palette.php
@@ -44,8 +44,8 @@ public function palette($color = null)
44
]);
45
}
46
47
- return ! empty($color) && is_string($color) ? (
48
- $colors[$color] ?? null
+ return ! empty($color) && is_string($color) && is_array($colors) ? (
+ array_key_exists($color, $colors) ? $colors[$color] : null
49
) : $colors;
50
51
0 commit comments