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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy