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.
1 parent 1a5a9a6 commit 1e7d6b0Copy full SHA for 1e7d6b0
packages/icon/src/Icon.php
@@ -30,13 +30,7 @@ public function __construct(
30
*/
31
public function render(string $icon): ?string
32
{
33
- $parsedIconIdentifier = $this->parseIconIdentifier($icon);
34
-
35
- if ($parsedIconIdentifier === null) {
36
- return null;
37
- }
38
39
- [$collection, $iconName] = $parsedIconIdentifier;
+ [$collection, $iconName] = $this->parseIconIdentifier($icon) ?? [null, null];
40
41
if ($this->iconCache->get("icon-failure-{$collection}-{$iconName}")) {
42
return null;
0 commit comments