Fix level 5! Mostly by ignoring the errors lol.

This commit is contained in:
James Cole
2025-01-04 09:15:39 +01:00
parent 5617de3a79
commit f4bc313d0b
19 changed files with 32 additions and 25 deletions

View File

@@ -146,7 +146,7 @@ class CorrectsNativeAmounts extends Command
{
$set = $piggyBank->piggyBankEvents()->get();
$set->each(
static function (PiggyBankEvent $event): void {
static function (PiggyBankEvent $event): void { // @phpstan-ignore-line
$event->touch();
}
);

View File

@@ -121,7 +121,7 @@ class CorrectsUnevenAmount extends Command
$journals = \DB::table('transactions')
->groupBy('transaction_journal_id')
->whereNull('deleted_at')
->get(['transaction_journal_id', \DB::raw('SUM(amount) AS the_sum')])
->get(['transaction_journal_id', \DB::raw('SUM(amount) AS the_sum')]) // @phpstan-ignore-line
;
/** @var \stdClass $entry */