Skip to content

Commit

Permalink
Merge branch '4.4' into 5.4
Browse files Browse the repository at this point in the history
* 4.4:
  Update Application.php
  Update validators.af.xlf
  • Loading branch information
derrabus committed Oct 26, 2022
2 parents ae0727b + 8e70c1c commit ea59bb0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,9 @@ public function doRun(InputInterface $input, OutputInterface $output)
$alternative = $alternatives[0];

$style = new SymfonyStyle($input, $output);
$style->block(sprintf('Command "%s" is not defined.', $name), null, 'error', ' ', true);
$output->writeln('');
$formattedBlock = (new FormatterHelper())->formatBlock(sprintf('Command "%s" is not defined.', $name), 'error', true);
$output->writeln($formattedBlock);
if (!$style->confirm(sprintf('Do you want to run "%s" instead? ', $alternative), false)) {
if (null !== $this->dispatcher) {
$event = new ConsoleErrorEvent($input, $output, $e);
Expand Down

0 comments on commit ea59bb0

Please sign in to comment.