Fix PHP7 related strict type check.

This commit is contained in:
James Cole
2016-02-11 07:02:27 +01:00
parent 2b6a1c9cb1
commit 4658ef9918

View File

@@ -30,7 +30,8 @@ class AssetAccount implements MapperInterface
/** @var Account $account */
foreach ($result as $account) {
$name = $account->name;
if (strlen($account->iban) > 0) {
$iban = $account->iban ?? '';
if (strlen($iban) > 0) {
$name .= ' (' . $account->iban . ')';
}
$list[$account->id] = $name;