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

Deprecation alert from jsm/serializer while using php 7.4 #813

Open
mazux opened this issue Aug 10, 2020 · 1 comment
Open

Deprecation alert from jsm/serializer while using php 7.4 #813

mazux opened this issue Aug 10, 2020 · 1 comment

Comments

@mazux
Copy link

mazux commented Aug 10, 2020

When using 2.4.4 (latest 2.x) version of this bundle on php 7.4 environment, you will get this message:

PHP Deprecated:  Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)` in /app/vendor/jms/serializer/src/JMS/Serializer/SerializationContext.php on line 123

As that version is using "jms/serializer": "^1.10", and it should be upgraded to be 1.14.1 which is created to resolve that issue.

@alyamovsky
Copy link

alyamovsky commented Sep 8, 2020

I had the same problem. The version 2.4.4 of the bundle doesn't conflict with any jms/serialiser 1.* version. You can add 1.14.1 explicitly to your composer.json config by running the composer require 'jms/serializer: ^1.14.1' command.

You can also run c up jms/serializer-bundle --with-dependencies and it will update all packages the bundle requires, including jms/serializer.

Finally you can run just c up jms/serializer without declaring the explicit requirement in composer.json, which will also update the library to 1.14.1

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

No branches or pull requests

2 participants