@@ -36,7 +36,7 @@ public function sends_schedule_failure_notification()
36
36
37
37
(new MockScheduleBuilder ())
38
38
->
addHandler (
new NotifierHandler (
$ notifier, [
'chat/slack ' ],
'[email protected] ' ,
'123456789 ' ))
39
- ->addBuilder (new class () implements ScheduleBuilder {
39
+ ->addBuilder (new class implements ScheduleBuilder {
40
40
public function buildSchedule (Schedule $ schedule ): void
41
41
{
42
42
$ schedule ->notifyOnFailure ();
@@ -72,7 +72,7 @@ public function sends_schedule_failure_notification_with_overrides()
72
72
73
73
(new MockScheduleBuilder ())
74
74
->
addHandler (
new NotifierHandler (
$ notifier, [
'chat/slack ' ],
'[email protected] ' ,
'127.0.0.1 ' ))
75
- ->addBuilder (new class () implements ScheduleBuilder {
75
+ ->addBuilder (new class implements ScheduleBuilder {
76
76
public function buildSchedule (Schedule $ schedule ): void
77
77
{
78
78
$ schedule ->notifyOnFailure ('teams ' , null , null , 'my subject ' , function (Notification $ notification ) {
@@ -100,7 +100,7 @@ public function sends_schedule_failure_notification_with_configured_subject_pref
100
100
101
101
(new MockScheduleBuilder ())
102
102
->
addHandler (
new NotifierHandler (
$ notifier, [
'chat/slack ' ],
'[email protected] ' ,
'[email protected] ' ,
'[Acme Inc] ' ))
103
- ->addBuilder (new class () implements ScheduleBuilder {
103
+ ->addBuilder (new class implements ScheduleBuilder {
104
104
public function buildSchedule (Schedule $ schedule ): void
105
105
{
106
106
$ schedule ->notifyOnFailure ();
@@ -251,7 +251,7 @@ public function provides_helpful_message_if_handler_not_configured()
251
251
$ this ->expectExceptionMessage ('To use the notifier extension you must configure a notifier (config path: "zenstruck_schedule.notifier"). ' );
252
252
253
253
(new MockScheduleBuilder ())
254
- ->addBuilder (new class () implements ScheduleBuilder {
254
+ ->addBuilder (new class implements ScheduleBuilder {
255
255
public function buildSchedule (Schedule $ schedule ): void
256
256
{
257
257
$ schedule ->notifyOnFailure ();
@@ -294,7 +294,7 @@ public function notification_shows_if_task_was_force_run()
294
294
295
295
private function createNotifier (): NotifierInterface
296
296
{
297
- return new class () implements NotifierInterface {
297
+ return new class implements NotifierInterface {
298
298
/** @var Notification */
299
299
public $ lastNotification ;
300
300
0 commit comments