Skip to content

Commit

Permalink
Fixed phpstan issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jbtronics committed Jul 3, 2023
1 parent a6fd454 commit ddbf8b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Form/Type/Helper/StructuralEntityChoiceHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public function generateChoiceAttr(AbstractNamedDBElement $choice, Options|array
public function generateChoiceAttrCurrency(Currency $choice, Options|array $options): array
{
$tmp = $this->generateChoiceAttr($choice, $options);
$symbol = $choice->getIsoCode() === null || $choice->getIsoCode() === '' ? null : Currencies::getSymbol($choice->getIsoCode());
$symbol = empty($choice->getIsoCode()) ? null : Currencies::getSymbol($choice->getIsoCode());
$tmp['data-short'] = $options['short'] ? $symbol : $choice->getName();

return $tmp + [
Expand Down

0 comments on commit ddbf8b7

Please sign in to comment.