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
For Symfony 6.2 a valid Route could be #[Route(path: '/{_locale}/404', name: '404')]
When using the string '404' as array key in the route-collection internally PHP converts that to an integer. So the annotated return type of the route collection "array<string, Route>" is no longer true due to PHP working in such way.
In Extractor/ExposedRouteExtractor.php the
For Symfony 6.2 a valid Route could be
#[Route(path: '/{_locale}/404', name: '404')]
When using the string '404' as array key in the route-collection internally PHP converts that to an integer. So the annotated return type of the route collection "array<string, Route>" is no longer true due to PHP working in such way.
In
Extractor/ExposedRouteExtractor.php
thethen fails with an Exception, because it expects a string and not an integer as second parameter.
compare symfony/symfony#48722
Easy fix for the FOSJsRoutingBundle would be a typecast
which I understand is kind of annoying, given the annotated return-type
The text was updated successfully, but these errors were encountered: