Skip to content

[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

Merged
merged 1 commit into from
Aug 2, 2020

Conversation

qkdreyer
Copy link
Contributor

@qkdreyer qkdreyer commented Jul 2, 2020

Q A
Branch? master
Bug fix? no
New feature? no
Deprecations? no
Tickets -
License MIT
Doc PR -

this would allows one to correctly unserialize a RedeliveryStamp with a custom serializer not using the php serialize function

@qkdreyer
Copy link
Contributor Author

qkdreyer commented Jul 2, 2020

Travis failed because of weird Error: Undefined class constant 'ALIASES' errors

@nicolas-grekas nicolas-grekas changed the title chore: add redeliveredAt in RedeliveryStamp construct [Messenger] add redeliveredAt in RedeliveryStamp construct Jul 3, 2020
@nicolas-grekas nicolas-grekas added this to the next milestone Jul 3, 2020
@nicolas-grekas
Copy link
Member

Can you please add a test case? This will allow spotting a typo ;)

@qkdreyer
Copy link
Contributor Author

qkdreyer commented Jul 6, 2020

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)
Copy link
Contributor

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

@fabpot
Copy link
Member

fabpot commented Aug 2, 2020

Thank you @qkdreyer.

@fabpot fabpot merged commit 681c666 into symfony:master Aug 2, 2020
@nicolas-grekas nicolas-grekas modified the milestones: next, 5.2 Oct 5, 2020
@fabpot fabpot mentioned this pull request Oct 5, 2020
@qkdreyer qkdreyer deleted the patch-1 branch April 15, 2021 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants