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.
JoliNotif@3
1 parent 5e229df commit 3b0e685Copy full SHA for 3b0e685
1 file changed
src/Notification.php
@@ -2,6 +2,7 @@
2
3
namespace Spatie\PhpUnitWatcher;
4
5
+use Joli\JoliNotif\DefaultNotifier;
6
use Joli\JoliNotif\Notification as JoliNotification;
7
use Joli\JoliNotif\NotifierFactory;
8
@@ -40,6 +41,8 @@ public function failingTests()
40
41
42
protected function send()
43
{
- return NotifierFactory::create()->send($this->joliNotification);
44
+ return class_exists(NotifierFactory::class)
45
+ ? NotifierFactory::create()->send($this->joliNotification) // Removed in JoliNotif 3
46
+ : (new DefaultNotifier())->send($this->joliNotification);
47
}
48
0 commit comments