You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the release of Symfony 7.0 as of today, the current version of JMSSerializerBundle fails to be required by any project due to a missing dependency with symfony/config.
The error is:
Compile Error: Declaration of JMS\SerializerBundle\DependencyInjection\Configuration::getConfigTreeBuilder() must be compatible with Symfony\Component\Config\Definition\ConfigurationInterface::getConfigTreeBuilder(): Symfony\Component\Config\Definition\Builder\TreeBuilder
This is because symfony/config is not explicitly set in the composer.json of this bundle, therefore, downloaded as a dependency of a dependency. With the release of Symfony 7, the installed version of symfony/config will automatically be "7.0.0", while this breaks the compatibility with JMSSerializerBundle 3.5.1.
Even if there is a new JMSSerializerBundle version in preparation that supports Symfony 7, any attempt to require jms/serializer-bundle: ^3.5 will fail because of this missing explicitly set dependency.
Please add a patch version where the dependency symfony/config:^6.0 is clearly defined in order to not download the version 7.0.0 until the compatibility is fully established.
Steps required to reproduce the problem
run composer require jms/serializer-bundle:"^3.5"
Look at the downloaded packages to see that symfony/config is in version 7.0.0 (this might not be truye depending on other libraries installed on your projects, so make sure you don't have any other libs that limits symfony/config)
Run anything on your project, like php bin/console cache:clear for instance.
Expected Result
No error, everything is fine
Actual Result
The text was updated successfully, but these errors were encountered:
With the release of Symfony 7.0 as of today, the current version of JMSSerializerBundle fails to be required by any project due to a missing dependency with symfony/config.
The error is:
This is because
symfony/config
is not explicitly set in the composer.json of this bundle, therefore, downloaded as a dependency of a dependency. With the release of Symfony 7, the installed version ofsymfony/config
will automatically be "7.0.0", while this breaks the compatibility with JMSSerializerBundle 3.5.1.Even if there is a new JMSSerializerBundle version in preparation that supports Symfony 7, any attempt to require jms/serializer-bundle: ^3.5 will fail because of this missing explicitly set dependency.
Please add a patch version where the dependency
symfony/config:^6.0
is clearly defined in order to not download the version 7.0.0 until the compatibility is fully established.Steps required to reproduce the problem
composer require jms/serializer-bundle:"^3.5"
symfony/config
is in version 7.0.0 (this might not be truye depending on other libraries installed on your projects, so make sure you don't have any other libs that limitssymfony/config
)php bin/console cache:clear
for instance.Expected Result
Actual Result
The text was updated successfully, but these errors were encountered: