Closed chmielot closed 7 years ago
I'm using your bundle together with Symfony 3. The problem was related to the platform requirements. I added the current serializer version explicitly to my composer.json and got the following error:
Problem 1
- Installation request for nilportugues/serializer ^1.2 -> satisfiable by nilportugues/serializer[1.2.0].
- nilportugues/serializer 1.2.0 requires php >=5.6.0 -> your PHP version (7.1.1) overridden by "config.platform.php" version (5.5.9) does not satisfy that requirement.
In my particular use case it's ok to run composer with --ignore-platform-reqs
, it works correctly then.
I will dig into it, I don't want people using the --ignore-platform-reqs
Fixed on the underlying library
Hi,
while trying to serialize an object I ran into an issue that was fixed already here: https://github.com/nilportugues/php-serializer/commit/8489eabb7c67a2ef8507f8af22238c135ee9bf3c
This is because symfony-jsonapi relies on "nilportugues/json-api": "^2.4"
which relies on "nilportugues/api-transformer": "^3.0.0"
which relies on "nilportugues/serializer": "~1.1"
I installed the package about 2 days ago. According to https://getcomposer.org/doc/articles/versions.md#tilde version 1.2 of serializer should have been installed, but it wasn't. Instead I have this in my composer.lock file (excerpt): snip snip
Any idea what's wrong with the dependencies?