File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -328,8 +328,9 @@ public function shouldSend(): bool
328328 {
329329 try {
330330 $ this ->load ('logs ' );
331+
331332 return $ this ->configurationsPasses () && $ this ->whenPasses () && $ this ->eventsPasses ();
332- } catch (Exception | Throwable ) {
333+ } catch (Exception | Throwable ) {
333334 return false ;
334335 }
335336 }
@@ -352,7 +353,7 @@ public function execute(bool $now = false): void
352353 dispatch (new SendMailJob ($ this ));
353354 }
354355 }
355- } catch (Exception | Throwable ) {
356+ } catch (Exception | Throwable ) {
356357 }
357358 }
358359
Original file line number Diff line number Diff line change @@ -25,11 +25,12 @@ public function test_failing_during_run_dont_stop_execution(): void
2525
2626 MailatorSchedule::init ('B ' )
2727 ->constraint (new TrueConstraint )
28- ->actionClass (new CustomAction (
29- $ user = User::factory ()->create ([
28+ ->actionClass (
29+ new CustomAction (
30+ $ user = User::factory ()->create ([
3031 'email_verified_at ' => null ,
3132 ])
32- )
33+ )
3334 )
3435 ->save ();
3536
@@ -39,6 +40,5 @@ public function test_failing_during_run_dont_stop_execution(): void
3940 );
4041
4142 self ::assertTrue ($ user ->fresh ()->hasVerifiedEmail ());
42-
4343 }
4444}
You can’t perform that action at this time.
0 commit comments