Skip to content

Commit 48999e0

Browse files
DrewdanAndrew Arscott
andauthored
allows extension of illuminate notification class (#56)
Co-authored-by: Andrew Arscott <[email protected]>
1 parent 2838480 commit 48999e0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/FailedJobNotifier.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace Spatie\FailedJobMonitor;
44

5+
use Illuminate\Notifications\Notification as IlluminateNotification;
56
use Illuminate\Queue\Events\JobFailed;
67
use Illuminate\Queue\QueueManager;
78
use Spatie\FailedJobMonitor\Exceptions\InvalidConfiguration;
@@ -31,7 +32,7 @@ public function isValidNotificationClass($notification): bool
3132
return true;
3233
}
3334

34-
if (is_subclass_of($notification, Notification::class)) {
35+
if (is_subclass_of($notification, IlluminateNotification::class)) {
3536
return true;
3637
}
3738

0 commit comments

Comments
 (0)