diff --git a/src/Command/CheckCommand.php b/src/Command/CheckCommand.php index 39186a8..5dc1c87 100644 --- a/src/Command/CheckCommand.php +++ b/src/Command/CheckCommand.php @@ -11,6 +11,7 @@ use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\ConsoleOutputInterface; use Symfony\Component\Console\Output\OutputInterface; +use Symfony\Component\Console\Terminal; use Symfony\Component\Process\Process; class CheckCommand extends Command @@ -251,7 +252,11 @@ protected function execute(InputInterface $input, OutputInterface $output): int } $command = array_merge($command, $paths); - $process = new Process($command); + $terminal = new Terminal(); + $process = new Process($command, null, [ + 'LINES' => $terminal->getHeight(), + 'COLUMNS' => $terminal->getWidth(), + ]); $process->setTimeout(null); $output->writeln('Executing PHPStan', OutputInterface::VERBOSITY_DEBUG);