Closed firstred closed 2 years ago
@dbu, any work in progress to make this compatible with Symfony 6?
@dbu, any work in progress to make this compatible with Symfony 6?
i got no reaction on my comments here. i am not aware of any other efforts. glad if you want to give it a go (i'd prefer to not add more return type than absolutely necessary for now, the maximal return type / property type things we should do as a new major version as it is potential BC breaks)
@dbu, any work in progress to make this compatible with Symfony 6?
i got no reaction on my comments here. i am not aware of any other efforts. glad if you want to give it a go (i'd prefer to not add more return type than absolutely necessary for now, the maximal return type / property type things we should do as a new major version as it is potential BC breaks)
I don't think we can release a minor version with Symfony 6.0 because of all the type hints. We would need to release a major version with the changes that @firstred has made?
i don't think we need those type declarations for symfony 6. only in places where we implement an interface method or overwrite a parent method. i am not sure if any of that is a BC break. when its only the DI classes they are not expected to be extended so should be ok. but would need to have a look.
i don't think we need those type declarations for symfony 6. only in places where we implement an interface method or overwrite a parent method. i am not sure if any of that is a BC break. when its only the DI classes they are not expected to be extended so should be ok. but would need to have a look.
Was pretty straightforward with 5 changes - https://github.com/symfony-cmf/routing-bundle/pull/472
I didn't modify any tests.
This PR makes the bundle compatible with Symfony 6.0.
I ran the patch-type-declarations script to automatically add types. Due to the required return types I had to drop PHP 7.4 support.
PHP 7.4 has been removed from the tests and PHP 8.1 has been added instead. Symfony 6.0 has been included as well.
Tested with commit
cd882f0551183d9fb5e75ed56ed4a017181f1572
of the Routing library.