Skip to content

Commit ddbf8b7

Browse files
committed
Fixed phpstan issue
1 parent a6fd454 commit ddbf8b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Form/Type/Helper/StructuralEntityChoiceHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public function generateChoiceAttr(AbstractNamedDBElement $choice, Options|array
9696
public function generateChoiceAttrCurrency(Currency $choice, Options|array $options): array
9797
{
9898
$tmp = $this->generateChoiceAttr($choice, $options);
99-
$symbol = $choice->getIsoCode() === null || $choice->getIsoCode() === '' ? null : Currencies::getSymbol($choice->getIsoCode());
99+
$symbol = empty($choice->getIsoCode()) ? null : Currencies::getSymbol($choice->getIsoCode());
100100
$tmp['data-short'] = $options['short'] ? $symbol : $choice->getName();
101101

102102
return $tmp + [

0 commit comments

Comments
 (0)