fix phpstan errors on ThirdPartyRender

This commit is contained in:
2022-03-30 21:52:43 +02:00
parent ae10a8bd1c
commit 63cdc97c47
3 changed files with 6 additions and 7 deletions

View File

@@ -71,13 +71,13 @@ class ThirdPartyRender extends AbstractChillEntityRender
$civility = '';
}
if (!empty($entity->getAcronym())) {
if ('' !== (string) $entity->getAcronym()) {
$acronym = ' (' . $entity->getAcronym() . ')';
} else {
$acronym = '';
}
$firstname = empty($entity->getFirstname()) ? '' : $entity->getFirstname();
$firstname = ('' === $entity->getFirstname()) ? '' : $entity->getFirstname();
return $civility . $firstname . ' ' . $entity->getName() . $acronym;
}