<?php array_sum(array $array): int|float
<?php $classifications = array_merge($incomeClassification, $expensesClassification); $classificationSum = array_sum(array_map(fn($item) => $item->getAmount(), $classifications)); $diff = round($row->getNetValue() - $classificationSum, 2); if ($diff != 0) {