From ef4c029c103ac9902cdf6c431d43403958f0ca82 Mon Sep 17 00:00:00 2001 From: Josh Crawford Date: Tue, 21 Nov 2023 10:29:25 +1100 Subject: [PATCH] Fix a PHP 8.2 warning --- src/models/Icon.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/Icon.php b/src/models/Icon.php index cb992a3..082013c 100644 --- a/src/models/Icon.php +++ b/src/models/Icon.php @@ -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); }