Skip to content

Commit b0acb1e

Browse files
committed
Merge branch '6.1' into 6.2
* 6.1: Update Application.php Update validators.af.xlf
2 parents 53399d9 + a1282bd commit b0acb1e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Application.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,9 @@ public function doRun(InputInterface $input, OutputInterface $output)
264264
$alternative = $alternatives[0];
265265

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

0 commit comments

Comments
 (0)