Closed JBlocks closed 1 year ago
The doctrine/instantiator
package supports ^7.1 || ^8.0
as of its 1.3.1 release. Try updating that package first.
Thanks for the feedback. Would it still be possible to bring the jms serializer to the new version 2 of doctrine/instantiator?
We currently have to resolve some dependencies, as e.g. the new TYPO3 CMS v12 uses the doctrine/instantiator:^2 package. The CMS and third-party providers will now increasingly update to the new versions. The doctrine/orm
package also uses the v2 of doctrine/instantiator
.
Hi. Last time when I was checking it there were some troubles with its installation - conflicts with other library. However if you have some time feel free to take a look at it and submit MR. I will be glad to help you if you would need any help. I will add this to my personal todo list too, however it is hard to estimate when I will have some time to work on that.
I just checked a Symfony app on what requires the Instantiator package:
$ composer why doctrine/instantiator
doctrine/orm 2.14.2 requires doctrine/instantiator (^1.3)
jms/serializer 3.23.0 requires doctrine/instantiator (^1.0.3)
phpunit/phpunit 9.6.7 requires doctrine/instantiator (^1.3.1 || ^2)
Because doctrine/orm
is a require-dev
of jms/serializer
, you still won't be able to install the Instantiator package with stable dependencies until ORM 2.15 ships https://github.com/doctrine/orm/pull/10351. Since there aren't CI builds with optional dependencies removed, you're better off waiting for that ORM release to add the new major to the list.
doctrine/orm
has been released, however to run proper tests for the serialiser there is one more blocker - https://github.com/doctrine/phpcr-odm
➜ serializer git:(master) composer why-not doctrine/instantiator 2
jms/serializer 3.x-dev requires doctrine/instantiator (^1.0.3)
doctrine/phpcr-odm 1.7.1 requires doctrine/instantiator (^1.0.1)
Steps required to reproduce the problem
composer req jms/serializer
doctrine/instantiator[1.1.0, ..., 1.3.0] require php ^7.1 -> your php version (8.1.16) does not satisfy that requirement.
Expected Result
Actual Result
doctrine/instantiator[1.1.0, ..., 1.3.0] require php ^7.1 -> your php version (8.1.16) does not satisfy that requirement.