Always prefer ::class notation

This commit is contained in:
Lucas Michot
2024-10-28 14:56:13 +01:00
parent 94e73c6d8b
commit c5403b0b3f
31 changed files with 99 additions and 99 deletions

View File

@@ -25,7 +25,7 @@ class Test extends Notification implements ShouldQueue
public function middleware(object $notifiable, string $channel)
{
return match ($channel) {
'App\Notifications\Channels\EmailChannel' => [new RateLimited('email')],
\App\Notifications\Channels\EmailChannel::class => [new RateLimited('email')],
default => [],
};
}