More PHP8.4 updates

This commit is contained in:
James Cole
2025-05-04 13:47:00 +02:00
parent e42107c03c
commit 51e86448c7
195 changed files with 524 additions and 715 deletions

View File

@@ -135,11 +135,11 @@ trait PeriodOverview
foreach ($transactions as $index => $item) {
$date = Carbon::parse($item['date']);
if ($date >= $start && $date <= $end) {
if ('away' === $direction && -1 === bccomp($item['amount'], '0')) {
if ('away' === $direction && -1 === bccomp((string) $item['amount'], '0')) {
$result[] = $item;
unset($transactions[$index]);
}
if ('in' === $direction && 1 === bccomp($item['amount'], '0')) {
if ('in' === $direction && 1 === bccomp((string) $item['amount'], '0')) {
$result[] = $item;
unset($transactions[$index]);
}