Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Commands/HandleMessageReceived.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -16,7 +16,7 @@ class HandleMessageReceived
public function __construct(
protected WatchMailbox $command,
protected int &$attempts = 0,
protected ?Carbon &$lastReceivedAt = null,
protected ?CarbonInterface &$lastReceivedAt = null,
) {}

/**
Expand Down
4 changes: 2 additions & 2 deletions src/Events/MailboxWatchAttemptsExceeded.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace DirectoryTree\ImapEngine\Laravel\Events;

use Carbon\Carbon;
use Carbon\CarbonInterface;
use Exception;

class MailboxWatchAttemptsExceeded
Expand All @@ -14,6 +14,6 @@ public function __construct(
public string $mailbox,
public int $attempts,
public Exception $exception,
public ?Carbon $lastReceivedAt = null,
public ?CarbonInterface $lastReceivedAt = null,
) {}
}