We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7216536 commit 85852b0Copy full SHA for 85852b0
1 file changed
src/Icon/Service/IconService.php
@@ -111,7 +111,8 @@ public function getIconForTag(): string
111
public function getIconForClassDefinition(?string $iconPath): ElementIcon
112
{
113
$type = ElementIconTypes::PATH->value;
114
- if ($iconPath === null) {
+ // $iconPath can be null and empty string
115
+ if (empty($iconPath)) {
116
$type = ElementIconTypes::NAME->value;
117
$iconPath = 'class';
118
}
0 commit comments