-
Notifications
You must be signed in to change notification settings - Fork 71
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
Fix compatibility with PHP 8.1 #101
Conversation
The failing "tests-coverage" pipeline seems to be unrelated to this PR |
thanks! |
Hi, I'm currently testing @sulu against current dev dependencies. In this case I did find out that the change of the jms/metadata between the current master and 2.5.1 does break serialization of our On Does somebody understand why this is now happening. I do not see any error here in the code provided by @W0rma. /cc @goetas do you have any idea how this change could affect this? |
@alexander-schranz can it be becase this https://github.com/schmittjoh/serializer/blob/master/src/Metadata/PropertyMetadata.php#L213 does not call the parent serialization method? |
@goetas Think we need also there add a |
this seems a very subtle change that will require a major release of |
@goetas Should we bump the min PHP version to 7.4 in the new major release? This way we could already stop implementing the deprecated Downside of this approach might be that we need a new major release for WDYT? |
I think that we can bump the minimum version to 7.4.
Why so? i think that we can still implement The main advantage I see of doing so is that other projects using |
#105 implements a backward compatible version of this change |
Run tests against PHP 8.1 and fix deprecation warning because of deprecated Serializeable interface (https://wiki.php.net/rfc/phase_out_serializable)