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

@@ -186,8 +186,8 @@ class AccountRepository implements AccountRepositoryInterface
public function getActiveAccountsByType(array $types): Collection
{
$query = $this->user->accounts()->with(
[
'accountmeta' => static function (HasMany $query): void {
[ // @phpstan-ignore-line
'accountmeta' => static function (HasMany $query): void { // @phpstan-ignore-line
$query->where('name', 'account_role');
},
'attachments',
@@ -212,7 +212,7 @@ class AccountRepository implements AccountRepositoryInterface
$disk = \Storage::disk('upload');
return $set->each(
static function (Attachment $attachment) use ($disk) {
static function (Attachment $attachment) use ($disk) { // @phpstan-ignore-line
$notes = $attachment->notes()->first();
$attachment->file_exists = $disk->exists($attachment->fileName());
$attachment->notes_text = null !== $notes ? $notes->text : '';
@@ -258,8 +258,8 @@ class AccountRepository implements AccountRepositoryInterface
public function getInactiveAccountsByType(array $types): Collection
{
$query = $this->user->accounts()->with(
[
'accountmeta' => static function (HasMany $query): void {
[ // @phpstan-ignore-line
'accountmeta' => static function (HasMany $query): void { // @phpstan-ignore-line
$query->where('name', 'account_role');
},
]