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

@@ -248,7 +248,7 @@ class CategoryRepository implements CategoryRepositoryInterface
$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 : '';