Skip to content

Commit

Permalink
PHPStan Pro - pass fixerTmpDir to PHPStan Pro executable
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Oct 13, 2023
1 parent 6891738 commit 4a95206
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Command/FixerApplication.php
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ private function getFixerProcess(OutputInterface $output, int $serverPort): Proc
}

$env = getenv();
$env['PHPSTAN_PRO_TMP_DIR'] = $this->fixerTmpDir;
$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 4a95206

Please sign in to comment.