Skip to content

Commit

Permalink
fix: add dev and target options validation for interactive mode
Browse files Browse the repository at this point in the history
otherwise, if there's a conflict, the exception will be thrown only after the interactive part.
  • Loading branch information
miclaus committed Jan 3, 2025
1 parent 1b1ed85 commit d3926fd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/NewCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ protected function interact(InputInterface $input, OutputInterface $output)
|______\__,_|_| \__,_| \_/ \___|_|</>'.PHP_EOL.PHP_EOL);

$this->ensureExtensionsAreAvailable($input, $output);
$this->validateDevAndTargetOptions($input);

if (! $input->getArgument('name')) {
$input->setArgument('name', text(
Expand Down

0 comments on commit d3926fd

Please sign in to comment.