Skip to content

Commit e61ad95

Browse files
committed
Copy all environment variables when running PHPStan Pro
1 parent be98a32 commit e61ad95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Command/FixerApplication.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ private function getFixerProcess(OutputInterface $output, int $serverPort): Proc
313313
throw new \PHPStan\Command\FixerProcessException();
314314
}
315315

316-
$env = null;
316+
$env = getenv();
317317
$forcedPort = $_SERVER['PHPSTAN_PRO_WEB_PORT'] ?? null;
318318
if ($forcedPort !== null) {
319319
$env['PHPSTAN_PRO_WEB_PORT'] = $_SERVER['PHPSTAN_PRO_WEB_PORT'];

0 commit comments

Comments
 (0)