Closed korsarNek closed 4 years ago
is this fixed with #250 ?
symfony 5 support means that we deprecated to pass non-strings to the route generator. thanks to type widening, the chain router still can handle them for BC, but it is no longer recommended. i did #252 to clarify things in the phpdoc.
The ChainRouter::generate function has a wider type for the name parameter than the UrlGeneratorInterface.
Some analysis tools like PHPStan check the PHPDoc to make sure the correct types are used.
With this change the PHPDoc for ChainRouter::generate reflects the widened type.