From 4658ef9918ab1cb8bebcfd48d0fa126c38d95595 Mon Sep 17 00:00:00 2001 From: James Cole Date: Thu, 11 Feb 2016 07:02:27 +0100 Subject: [PATCH] Fix PHP7 related strict type check. --- app/Helpers/Csv/Mapper/AssetAccount.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Helpers/Csv/Mapper/AssetAccount.php b/app/Helpers/Csv/Mapper/AssetAccount.php index 8131cd56dc..4060bc0055 100644 --- a/app/Helpers/Csv/Mapper/AssetAccount.php +++ b/app/Helpers/Csv/Mapper/AssetAccount.php @@ -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;