File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change 1
- includes:
2
- - ./vendor/larastan/larastan/extension.neon
3
-
4
-
5
1
parameters:
6
2
7
3
paths:
@@ -14,6 +10,4 @@ parameters:
14
10
- identifier: missingType.generics
15
11
- identifier: missingType.iterableValue
16
12
17
- noUnnecessaryCollectionCall: false
18
- checkModelProperties: false
19
13
reportUnmatchedIgnoredErrors: false
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ public function handle(): void
62
62
/** @phpstan-ignore-next-line */
63
63
$ withFormatCallback = ! is_null ($ this ->withFormatCallback ) ? \unserialize ($ this ->withFormatCallback )->getClosure () : null ;
64
64
65
- /** @var \Illuminate\Contracts\Auth\Authenticatable&\Illuminate\Database\Eloquent\Model $userModel */
65
+ /** @var class-string< \Illuminate\Contracts\Auth\Authenticatable&\Illuminate\Database\Eloquent\Model> $userModel */
66
66
$ userModel = Util::userModel ();
67
67
$ storageDisk = $ this ->options ['storageDisk ' ];
68
68
$ filename = $ this ->options ['filename ' ];
@@ -76,7 +76,7 @@ public function handle(): void
76
76
(new Filesystem )->delete ($ exportedFilename );
77
77
78
78
/** @var \Illuminate\Contracts\Auth\Authenticatable&\Illuminate\Database\Eloquent\Model $user */
79
- $ user = $ userModel ::findOrFail ($ this ->userId );
79
+ $ user = $ userModel ::query ()-> findOrFail ($ this ->userId );
80
80
81
81
QueuedCsvExported::dispatch (
82
82
$ user , $ storedFilename , $ storageDisk
You can’t perform that action at this time.
0 commit comments