-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Messenger] add redeliveredAt in RedeliveryStamp construct #37480
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Travis failed because of weird |
Can you please add a test case? This will allow spotting a typo ;) |
Nicely catch @nicolas-grekas |
@@ -24,12 +24,12 @@ final class RedeliveryStamp implements StampInterface | |||
private $exceptionMessage; | |||
private $flattenException; | |||
|
|||
public function __construct(int $retryCount, string $exceptionMessage = null, FlattenException $flattenException = null) | |||
public function __construct(int $retryCount, string $exceptionMessage = null, FlattenException $flattenException = null, \DateTimeImmutable $redeliveredAt = null) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should typehint DateTimeInterface
since this is what getRedeliveredAt also typehints
Thank you @qkdreyer. |
this would allows one to correctly unserialize a RedeliveryStamp with a custom serializer not using the php serialize function