Skip to content
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

Add return types to normalizers #33

Open
ko4a opened this issue Feb 7, 2022 · 0 comments · May be fixed by #105
Open

Add return types to normalizers #33

ko4a opened this issue Feb 7, 2022 · 0 comments · May be fixed by #105

Comments

@ko4a
Copy link

ko4a commented Feb 7, 2022

Hi after upgrading symfony to 5.4 and php to 8.0 i got following deprecation notices:

Method "Symfony\Component\Serializer\Normalizer\DenormalizerInterface::denormalize()" might add "mixed" as a native return type declaration in the future. Do the same in implementation "Ekreative\UuidExtraBundle\Serializer\UuidNormalizer" now to avoid errors or add an explicit @return annotation to suppress this message.

Method "Symfony\Component\Serializer\Normalizer\DenormalizerInterface::supportsDenormalization()" might add "bool" as a native return type declaration in the future. Do the same in implementation "Ekreative\UuidExtraBundle\Serializer\UuidNormalizer" now to avoid errors or add an explicit @return annotation to suppress this message.

Method "Symfony\Component\Serializer\Normalizer\NormalizerInterface::normalize()" might add "array|string|int|float|bool|\ArrayObject|null" as a native return type declaration in the future. Do the same in implementation "Ekreative\UuidExtraBundle\Serializer\UuidNormalizer" now to avoid errors or add an explicit @return annotation to suppress this message.

Method "Symfony\Component\Serializer\Normalizer\NormalizerInterface::supportsNormalization()" might add "bool" as a native return type declaration in the future. Do the same in implementation "Ekreative\UuidExtraBundle\Serializer\UuidNormalizer" now to avoid errors or add an explicit @return annotation to suppress this message.

Could you please fix it? Or could i provide PR for fix it ?

@HonzaMatosik HonzaMatosik linked a pull request Apr 24, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant