🤖 Auto commit for release 'develop' on 2026-03-09

This commit is contained in:
JC5
2026-03-09 04:52:39 +01:00
parent 91b7ee06d8
commit 7c3fb7a95a
30 changed files with 161 additions and 148 deletions

View File

@@ -253,11 +253,12 @@ class ConvertToDeposit implements ActionInterface
throw new FireflyException(sprintf('Cannot find destination transaction for journal #%d', $journal->id));
}
/** @var Account|null $res */
$res = $destTransaction->account;
if(null === $res) {
/** @var null|Account $res */
$res = $destTransaction->account;
if (null === $res) {
throw new FireflyException('Account is unexpectedly NULL.');
}
return $res;
}
@@ -272,11 +273,12 @@ class ConvertToDeposit implements ActionInterface
throw new FireflyException(sprintf('Cannot find source transaction for journal #%d', $journal->id));
}
/** @var Account|null $res */
$res = $sourceTransaction->account;
if(null === $res) {
/** @var null|Account $res */
$res = $sourceTransaction->account;
if (null === $res) {
throw new FireflyException('Account is unexpectedly NULL.');
}
return $res;
}
}