diff --git a/rules-tests/Symfony73/Rector/Class_/InvokableCommandInputAttributeRector/Fixture/optional_option_before_required.php.inc b/rules-tests/Symfony73/Rector/Class_/InvokableCommandInputAttributeRector/Fixture/optional_option_before_required.php.inc new file mode 100644 index 00000000..e7cddc7e --- /dev/null +++ b/rules-tests/Symfony73/Rector/Class_/InvokableCommandInputAttributeRector/Fixture/optional_option_before_required.php.inc @@ -0,0 +1,62 @@ +addOption('option', 'o', InputOption::VALUE_NONE, 'Option description'); + $this->addOption('another', 'a', InputOption::VALUE_REQUIRED, 'No default value'); + } + + public function execute(InputInterface $input, OutputInterface $output): int + { + $someOption = $input->getOption('option'); + $another = $input->getOption('another'); + + // ... + + return 1; + } +} + +?> +----- +