From 4a952068df57b09e8920de756ab2a6b8a0ffdf10 Mon Sep 17 00:00:00 2001 From: Ondrej Mirtes Date: Fri, 13 Oct 2023 15:18:23 +0200 Subject: [PATCH] PHPStan Pro - pass fixerTmpDir to PHPStan Pro executable --- src/Command/FixerApplication.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Command/FixerApplication.php b/src/Command/FixerApplication.php index 07b18dfff7..83cf1f5446 100644 --- a/src/Command/FixerApplication.php +++ b/src/Command/FixerApplication.php @@ -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'];