Skip to content

Commit 07402a1

Browse files
committed
fix(phpstan):(LAR-105) fixing phpstan error on User model
1 parent 4277e95 commit 07402a1

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

app/Livewire/Modals/Unsplash.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ public static function modalMaxWidth(): string
2020

2121
public function render(): View
2222
{
23-
return view('livewire.modals.unsplash');
23+
return view('livewire.modals.unsplash'); // @phpstan-ignore-line
2424
}
2525
}

app/Models/User.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,14 @@ final class User extends Authenticatable implements FilamentUser, HasAvatar, Has
102102
'settings' => 'array',
103103
];
104104

105+
/**
106+
* @param string $provider
107+
* @return bool
108+
*/
105109
public function hasProvider(string $provider): bool
106110
{
107111
foreach ($this->providers as $p) {
108-
if ($p->provider === $provider) { // @phpstan-ignore-line
112+
if ($p->provider === $provider) {
109113
return true;
110114
}
111115
}

0 commit comments

Comments
 (0)