8000 chore: add @noniagriconomie code review · symfony/symfony@e3a3afe · GitHub
[go: up one dir, main page]

Skip to content

Commit e3a3afe

Browse files
chore: add @noniagriconomie code review
Co-authored-by: Antoine Makdessi <antoine.makdessi@agriconomie.com>
1 parent fc2ebea commit e3a3afe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/Messenger/Stamp/RedeliveryStamp.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ final class RedeliveryStamp implements StampInterface
2424
private $exceptionMessage;
2525
private $flattenException;
2626

27-
public function __construct(int $retryCount, string $exceptionMessage = null, FlattenException $flattenException = null, \DateTimeTimmutable $redeliveredAt = null)
27+
public function __construct(int $retryCount, string $exceptionMessage = null, FlattenException $flattenException = null, \DateTimeImmutable $redeliveredAt = null)
2828
{
2929
$this->retryCount = $retryCount;
3030
$this->exceptionMessage = $exceptionMessage;
3131
$this->flattenException = $flattenException;
32-
$this->redeliveredAt = $redeliveredAt instanceof \DateTimeImmutable ? $redeliveredAt : new \DateTimeImmutable();
32+
$this->redeliveredAt = $redeliveredAt ?? new \DateTimeImmutable();
3333
}
3434

3535
public static function getRetryCountFromEnvelope(Envelope $envelope): int

0 commit comments

Comments
 (0)
0