8000 TextDescriptor throws exception when _controller is defined as an array in a route · Issue #32324 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
TextDescriptor throws exception when _controller is defined as an array in a route #32324
Closed
@Kyoushu

Description

@Kyoushu

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

      0