-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[FrameworkBundle][Routing] Remove remaining deprecations #52137
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
[FrameworkBundle][Routing] Remove remaining deprecations #52137
Conversation
c5a289f
to
4076990
Compare
4076990
to
4c79047
Compare
4c79047
to
77f6efc
Compare
Thank you @alexandre-daubois. |
*/ | ||
protected function configureRoute(Route $route, \ReflectionClass $class, \ReflectionMethod $method, object $annot) | ||
protected function configureRoute(Route $route, \ReflectionClass $class, \ReflectionMethod $method, object $annot): void |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This makes SymfonyBundle 6.4 incompatible with SymfonyRouter 7.0
PHP Fatal error: Declaration of Symfony\Bundle\FrameworkBundle\Routing\AttributeRouteControllerLoader::configureRoute(Symfony\Component\Routing\Route $route, ReflectionClass $class, ReflectionMethod $method, object $annot) must be compatible with Symfony\Component\Routing\Loader\AttributeClassLoader::configureRoute(Symfony\Component\Routing\Route $route, ReflectionClass $class, ReflectionMethod $method, object $annot): void in /home/runner/work/aws/aws/vendor/symfony/framework-bundle/Routing/AttributeRouteControllerLoader.php on line 31
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the best way to mitigate this? Return types were added nearly everywhere but all constraints have been kept to ^6.4|^7.0
.
Should this return type be removed until the next occasion we can add it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see 2 options:
- make Bundle require
^7.0
- adds
: void
inBundle:7.0
and inRoute:8.0
I think the first is better.
ping @nicolas-grekas
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm going to remove the added return type in 7.0. That's what we did with the previous name, but I forgot this part when renaming.
Follows #51483, I took
Annotation*Loader
from 7.0 to updateAttribute*Loader
here with latest changes.