File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 22
33namespace DirectoryTree \ImapEngine \Laravel \Commands ;
44
5- use Carbon \CarbonImmutable ;
5+ use Carbon \CarbonInterface ;
66use DirectoryTree \ImapEngine \Laravel \Events \MessageReceived ;
77use DirectoryTree \ImapEngine \MessageInterface ;
8- use Illuminate \Support \Carbon ;
98use Illuminate \Support \Facades \Date ;
109use Illuminate \Support \Facades \Event ;
1110
@@ -17,7 +16,7 @@ class HandleMessageReceived
1716 public function __construct (
1817 protected WatchMailbox $ command ,
1918 protected int &$ attempts = 0 ,
20- protected null | Carbon | CarbonImmutable &$ lastReceivedAt = null ,
19+ protected ? CarbonInterface &$ lastReceivedAt = null ,
2120 ) {}
2221
2322 /**
Original file line number Diff line number Diff line change 22
33namespace DirectoryTree \ImapEngine \Laravel \Events ;
44
5- use Carbon \Carbon ;
6- use Carbon \CarbonImmutable ;
5+ use Carbon \CarbonInterface ;
76use Exception ;
87
98class MailboxWatchAttemptsExceeded
@@ -15,6 +14,6 @@ public function __construct(
1514 public string $ mailbox ,
1615 public int $ attempts ,
1716 public Exception $ exception ,
18- public null | Carbon | CarbonImmutable $ lastReceivedAt = null ,
17+ public ? CarbonInterface $ lastReceivedAt = null ,
1918 ) {}
2019}
You can’t perform that action at this time.
0 commit comments