Closed
Description
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
- in PHPStorm with symfony/console >= 6.1
- 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