Skip to content

Commit c27f90e

Browse files
aleksandr-shevchenkoxabbuh
authored andcommitted
Update Application.php
#47862 (comment)
1 parent ab793bb commit c27f90e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Symfony/Component/Console/Application.php

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

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

0 commit comments

Comments
 (0)