Skip to content

Commit

Permalink
Copy all environment variables when running PHPStan Pro
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Dec 1, 2021
1 parent be98a32 commit e61ad95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Command/FixerApplication.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
Expand Down

0 comments on commit e61ad95

Please # to comment.