Skip to content

Commit aafcde8

Browse files
committed
wip
Signed-off-by: Mior Muhammad Zaki <[email protected]>
1 parent 2e18a8e commit aafcde8

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

phpstan.neon.dist

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
includes:
2-
- ./vendor/larastan/larastan/extension.neon
3-
4-
51
parameters:
62

73
paths:
@@ -14,6 +10,4 @@ parameters:
1410
- identifier: missingType.generics
1511
- identifier: missingType.iterableValue
1612

17-
noUnnecessaryCollectionCall: false
18-
checkModelProperties: false
1913
reportUnmatchedIgnoredErrors: false

src/Jobs/QueuedExportAsCsv.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function handle(): void
6262
/** @phpstan-ignore-next-line */
6363
$withFormatCallback = ! is_null($this->withFormatCallback) ? \unserialize($this->withFormatCallback)->getClosure() : null;
6464

65-
/** @var \Illuminate\Contracts\Auth\Authenticatable&\Illuminate\Database\Eloquent\Model $userModel */
65+
/** @var class-string<\Illuminate\Contracts\Auth\Authenticatable&\Illuminate\Database\Eloquent\Model> $userModel */
6666
$userModel = Util::userModel();
6767
$storageDisk = $this->options['storageDisk'];
6868
$filename = $this->options['filename'];
@@ -76,7 +76,7 @@ public function handle(): void
7676
(new Filesystem)->delete($exportedFilename);
7777

7878
/** @var \Illuminate\Contracts\Auth\Authenticatable&\Illuminate\Database\Eloquent\Model $user */
79-
$user = $userModel::findOrFail($this->userId);
79+
$user = $userModel::query()->findOrFail($this->userId);
8080

8181
QueuedCsvExported::dispatch(
8282
$user, $storedFilename, $storageDisk

0 commit comments

Comments
 (0)