diff --git a/src/Command/FixerApplication.php b/src/Command/FixerApplication.php index 698b24d7e..ff9031dac 100644 --- a/src/Command/FixerApplication.php +++ b/src/Command/FixerApplication.php @@ -313,7 +313,7 @@ private function getFixerProcess(OutputInterface $output, int $serverPort): Proc throw new \PHPStan\Command\FixerProcessException(); } - $env = null; + $env = getenv(); $forcedPort = $_SERVER['PHPSTAN_PRO_WEB_PORT'] ?? null; if ($forcedPort !== null) { $env['PHPSTAN_PRO_WEB_PORT'] = $_SERVER['PHPSTAN_PRO_WEB_PORT'];