8000 [Messenger] Add RedeliveryStamp (de)normalizer to avoid deprecations by Jean85 · Pull Request #45701 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Messenger] Add RedeliveryStamp (de)normalizer to avoid deprecations #45701

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

Closed
wants to merge 5 commits into from
Closed
Changes from 1 commit
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
Prev Previous commit
Remove Kernel check
  • Loading branch information
Jean85 committed Mar 11, 2022
commit 6f643d0219f591c5466df2eaed46f7c6af2d33c0
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
use Symfony\Component\Serializer\Exception\InvalidArgumentException;
use Symfony\Component\Serializer\Normalizer\DateTimeNormalizer;
use Symfony\Component\Serializer\Normalizer\DenormalizerInterface;
use Symfony\Component\Serializer\Normalizer\NormalizerInterface;

class RedeliveryStampNormalizer implements DenormalizerInterface
{
Expand Down Expand Up @@ -53,8 +52,6 @@ public function normalize($object, string $format = null, array $context = [])

public function supportsNormalization($data, string $format = null): bool
{
return Kernel::VERSION_ID >= 50200
&& $data instanceof RedeliveryStamp
;
return $data instanceof RedeliveryStamp;
}
}
0