Skip to content

Commit

Permalink
Fix a PHP 8.2 warning
Browse files Browse the repository at this point in the history
  • Loading branch information
engram-design committed Nov 20, 2023
1 parent 5939624 commit ef4c029
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/models/Icon.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public function getLabel(): ?string
return $this->value;
}

if ($this->type === self::TYPE_SVG) {
if ($this->value && $this->type === self::TYPE_SVG) {
return pathinfo($this->value, PATHINFO_FILENAME);
}

Expand Down

0 comments on commit ef4c029

Please sign in to comment.