Closed
Closed
Copy link
Description
Symfony version(s) affected: 4.3.2
Description
If a route collection contains a route where _controller
is an array (e.g. [FooController::class, 'bar']
), Symfony\Bundle\FrameworkBundle\Console\Descriptor\TextDescriptor::formatControllerLink
will throw an exception.
How to reproduce
I've created a reproducer
https://github.com/Kyoushu/symfony-text-descriptor-bug
Relevant code can be found in bug.php
Possible Solution
Catching TypeError
will silence the exception, but won't really solve the underlying problem