Replies: 3 comments 4 replies
-
|
Beta Was this translation helpful? Give feedback.
-
In the test, this is called: This will work because |
Beta Was this translation helpful? Give feedback.
-
The method needs to be static |
Beta Was this translation helpful? Give feedback.
-
Hi, as always, awesome package!
I was trying to filter out some exceptions in failed jobs to be pushed to Slack. So I was reading the docs and found this:
'notificationFilter' => [App\Notifications\FailedJobNotification::class, 'notificationFilter'],
But it didn't work, so I started debugging the package and it looks like the above code won't pass the is_callable check in
FailedJobBotifier::shouldSendNotification
. It will work when I change the config fromApp\Notifications\FailedJobNotification::class
tonew App\Notifications\FailedJobNotification
.I think this code is less pretty, so I thought I will start a discussion about it. Do you think the code needs to be fixed or the docs need to be changed?Beta Was this translation helpful? Give feedback.
All reactions