Skip to content

Commit d3597ab

Browse files
committed
Update CommandHelper.php
1 parent ad04102 commit d3597ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Command/CommandHelper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,10 @@ public static function begin(
9999
{
100100
$stdOutput = new SymfonyOutput($output, new SymfonyStyle(new ErrorsConsoleStyle($input, $output)));
101101

102-
$errorOutput = (static function () use ($input, $output): Output {
102+
$errorOutput = (static function ($input, $output): Output {
103103
$symfonyErrorOutput = $output instanceof ConsoleOutputInterface ? $output->getErrorOutput() : $output;
104104
return new SymfonyOutput($symfonyErrorOutput, new SymfonyStyle(new ErrorsConsoleStyle($input, $symfonyErrorOutput)));
105-
})();
105+
})($input, $output);
106106

107107
if (!$allowXdebug) {
108108
$xdebug = new XdebugHandler('phpstan');

0 commit comments

Comments
 (0)