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

Do not treat deprecation level as errors #5566

Merged
merged 1 commit into from Aug 5, 2022

Conversation

wouterj
Copy link
Contributor

@wouterj wouterj commented Aug 5, 2022

Q A
Type bug
Fixed issues -

Summary

When testing our application on PHP 8.1, we noticed Doctrine fails hard on the deprecation notice about Serialization::unserialize(). As we cannot upgrade to __unserialize() quickly (we returned a custom string representation), we cannot fix this deprecation at the moment (instead, we'll always serialize using the serialize() format, and let all entries update over time).

Doctrine treating deprecations as a hard unserialization error is blocking this process. I believe it should ignore deprecations and let the PHP handler handle them.

@morozov
Copy link
Member

morozov commented Aug 5, 2022

@wouterj the patch looks good. Please add a corresponding unit test.

@wouterj
Copy link
Contributor Author

wouterj commented Aug 5, 2022

Thanks for the quick response. I've added a test (I couldn't find Doctrine's standard regarding fixture objects, please let me know if I should place it in a different location).

@derrabus derrabus added this to the 3.3.8 milestone Aug 5, 2022
@morozov morozov merged commit f873a82 into doctrine:3.3.x Aug 5, 2022
@morozov
Copy link
Member

morozov commented Aug 5, 2022

Thanks, @wouterj!

@wouterj wouterj deleted the serialization-deprecation branch August 5, 2022 15:52
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants