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

@@ -193,7 +193,7 @@ class CurrencyRepository implements CurrencyRepositoryInterface
public function get(): Collection
{
$all = $this->userGroup->currencies()->orderBy('code', 'ASC')->withPivot(['group_default'])->get();
$all->map(static function (TransactionCurrency $current) {
$all->map(static function (TransactionCurrency $current) { // @phpstan-ignore-line
$current->userGroupEnabled = true;
$current->userGroupDefault = 1 === (int) $current->pivot->group_default;