Skip to content

[Console] Docblocks in 6.1 are wrongly formatted #46140

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Zarthus opened this issue Apr 21, 2022 · 1 comment
Closed

[Console] Docblocks in 6.1 are wrongly formatted #46140

Zarthus opened this issue Apr 21, 2022 · 1 comment

Comments

@Zarthus
Copy link

Zarthus commented Apr 21, 2022

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

@chalasr
Copy link
Member

chalasr commented Apr 30, 2022

Closing for the reason given in #46218 (comment) (tldr: not a Symfony bug but a PHPStorm one). Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants