Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

TextDescriptor throws exception when _controller is defined as an array in a route #32324

Copy link
Copy link
Closed
@Kyoushu

Description

@Kyoushu
Issue body actions

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.