Skip to content

[Console] Docblocks in 6.1 are wrongly formatted #46140

Closed
@Zarthus

Description

@Zarthus

Symfony version(s) affected

6.1, 6.0

Description

https://github.com/symfony/console/blob/6.1/Command/Command.php#L434-L479
https://github.com/symfony/console/blob/6.0/Command/Command.php#L431-L450

In PhpStorm the following docblock is picked up as "The" class rather than, for instance in $mode, a nullable int

How to reproduce

  1. in PHPStorm with symfony/console >= 6.1
  2. Try the following code snippet
class SfCommand extends \Symfony\Component\Console\Command\Command
{
    protected function configure()
    {
        $this->addOption('foo', 'bar', 'baz', 'desc', 'default',);
    }
}

https://github.com/symfony/console/blob/6.1/Command/Command.php#L434-L479

Possible Solution

The way it looks in 5.4 is fine:

https://github.com/symfony/console/blob/5.4/Command/Command.php#L446-L465

Additional Context

image

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