Bug Report
default value is missing
| Subject |
Details |
| Rector version |
2.1.5 |
When you have the command like:
public function configure(): void
{
$this
->addArgument('query', InputArgument::OPTIONAL, 'Query', 'wooden stove under 1000 euros');
}
protected function execute(InputInterface $input, OutputInterface $output): int
{}
It generates:
public function __invoke(#[Argument(name: 'query', description: 'Query')]
?string $query, OutputInterface $output): int
but should:
public function __invoke(#[Argument(name: 'query', description: 'Query')]
- ?string $query, OutputInterface $output): int
+ string $query = 'wooden stove under 1000 euros', OutputInterface $output): int
So the default value is missing.
Bug Report
default value is missing
When you have the command like:
It generates:
but should:
So the default value is missing.