Skip to content

Commit 3b026ea

Browse files
committed
simplify
1 parent 71589af commit 3b026ea

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/Command/CommandHelper.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,8 @@ public static function begin(
9898
): InceptionResult
9999
{
100100
$stdOutput = new SymfonyOutput($output, new SymfonyStyle(new ErrorsConsoleStyle($input, $output)));
101-
102-
$errorOutput = (static function ($input, $output): Output {
103-
$symfonyErrorOutput = $output instanceof ConsoleOutputInterface ? $output->getErrorOutput() : $output;
104-
return new SymfonyOutput($symfonyErrorOutput, new SymfonyStyle(new ErrorsConsoleStyle($input, $symfonyErrorOutput)));
105-
})($input, $output);
101+
$symfonyErrorOutput = $output instanceof ConsoleOutputInterface ? $output->getErrorOutput() : $output;
102+
$errorOutput = new SymfonyOutput($symfonyErrorOutput, new SymfonyStyle(new ErrorsConsoleStyle($input, $symfonyErrorOutput)));
106103

107104
if (!$allowXdebug) {
108105
$xdebug = new XdebugHandler('phpstan');

0 commit comments

Comments
 (0)