-
-
Notifications
You must be signed in to change notification settings - Fork 742
Closed
rectorphp/rector-symfony
#841Labels
Description
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): intSo the default value is missing.
Reactions are currently unavailable