We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e65f8c commit c8ca730Copy full SHA for c8ca730
src/FailedJobNotifier.php
@@ -26,17 +26,9 @@ public function register(): void
26
});
27
}
28
29
- public function isValidNotificationClass($notification): bool
+ public function isValidNotificationClass(object $notification): bool
30
{
31
- if (get_class($notification) === Notification::class) {
32
- return true;
33
- }
34
-
35
- if (is_subclass_of($notification, IlluminateNotification::class)) {
36
37
38
39
- return false;
+ return $notification instanceof IlluminateNotification;
40
41
42
public function shouldSendNotification($notification): bool
0 commit comments