Skip to content

Commit

Permalink
Fix a PHPStan issue about a strict comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
javiereguiluz committed Jan 5, 2024
1 parent e74dfcb commit 563e295
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Field/Configurator/ChoiceConfigurator.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ private function getBadgeCssClass($badgeSelector, $value, FieldDto $field): stri
}
}

$badgeTypeCssClass = (null === $badgeType || '' === $badgeType) ? '' : u($badgeType)->ensureStart('badge-')->toString();
$badgeTypeCssClass = '' === $badgeType ? '' : u($badgeType)->ensureStart('badge-')->toString();

return $commonBadgeCssClass.' '.$badgeTypeCssClass;
}
Expand Down

0 comments on commit 563e295

Please sign in to comment.