Skip to content

Commit d5d64f0

Browse files
authored
Add PHPStan configuration (#8)
Signed-off-by: Mior Muhammad Zaki <[email protected]>
1 parent a1586b4 commit d5d64f0

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

phpstan.neon.dist

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
parameters:
2+
paths:
3+
- src
4+
5+
level: 0
6+
7+
ignoreErrors:
8+
- '#has invalid (return type|type) App\\Models\\User#'

src/Http/Requests/AuthKitAuthenticationRequest.php

+2
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ public function authenticate(?callable $findUsing = null, ?callable $createUsing
7474
*/
7575
protected function findUsing(string $id): ?AppUser
7676
{
77+
/** @phpstan-ignore class.notFound */
7778
return AppUser::where('workos_id', $id)->first();
7879
}
7980

@@ -82,6 +83,7 @@ protected function findUsing(string $id): ?AppUser
8283
*/
8384
protected function createUsing(User $user): AppUser
8485
{
86+
/** @phpstan-ignore class.notFound */
8587
return AppUser::create([
8688
'name' => $user->firstName.' '.$user->lastName,
8789
'email' => $user->email,

0 commit comments

Comments
 (0)