diff --git a/src/Commands/HandleMessageReceived.php b/src/Commands/HandleMessageReceived.php index b4c98c2..26c6023 100644 --- a/src/Commands/HandleMessageReceived.php +++ b/src/Commands/HandleMessageReceived.php @@ -2,9 +2,9 @@ namespace DirectoryTree\ImapEngine\Laravel\Commands; +use Carbon\CarbonInterface; use DirectoryTree\ImapEngine\Laravel\Events\MessageReceived; use DirectoryTree\ImapEngine\MessageInterface; -use Illuminate\Support\Carbon; use Illuminate\Support\Facades\Date; use Illuminate\Support\Facades\Event; @@ -16,7 +16,7 @@ class HandleMessageReceived public function __construct( protected WatchMailbox $command, protected int &$attempts = 0, - protected ?Carbon &$lastReceivedAt = null, + protected ?CarbonInterface &$lastReceivedAt = null, ) {} /** diff --git a/src/Events/MailboxWatchAttemptsExceeded.php b/src/Events/MailboxWatchAttemptsExceeded.php index 5c61262..f0e88c5 100644 --- a/src/Events/MailboxWatchAttemptsExceeded.php +++ b/src/Events/MailboxWatchAttemptsExceeded.php @@ -2,7 +2,7 @@ namespace DirectoryTree\ImapEngine\Laravel\Events; -use Carbon\Carbon; +use Carbon\CarbonInterface; use Exception; class MailboxWatchAttemptsExceeded @@ -14,6 +14,6 @@ public function __construct( public string $mailbox, public int $attempts, public Exception $exception, - public ?Carbon $lastReceivedAt = null, + public ?CarbonInterface $lastReceivedAt = null, ) {} }