Added PHP7 return type statements.

This commit is contained in:
James Cole
2016-02-06 16:22:12 +01:00
parent b8c7876454
commit 4424e48926
4 changed files with 59 additions and 51 deletions

View File

@@ -122,7 +122,7 @@ class AccountController extends Controller
// the opening balance is tricky:
$openingBalanceAmount = null;
if ($openingBalance) {
if ($openingBalance->id) {
$transaction = $repository->getFirstTransaction($openingBalance, $account);
$openingBalanceAmount = $transaction->amount;
}