Fix various phpstan errors.

This commit is contained in:
James Cole
2023-11-01 18:45:15 +01:00
parent 4ee3c7d83e
commit 3b4b074bae
14 changed files with 49 additions and 66 deletions

View File

@@ -501,8 +501,8 @@ class ForceDecimalSize extends Command
/** @var Transaction $item */
foreach ($result as $item) {
$value = $item->amount;
if (null === $value) {
$value = (string)$item->amount;
if ('' === $value) {
continue;
}
// fix $field by rounding it down correctly.