diff --git a/src/Command/CommandHelper.php b/src/Command/CommandHelper.php index 073aa14bcf..8fb57fdab9 100644 --- a/src/Command/CommandHelper.php +++ b/src/Command/CommandHelper.php @@ -230,10 +230,9 @@ public static function begin( if (!isset($tmpDir)) { $tmpDir = sys_get_temp_dir() . '/phpstan'; + $createDir($tmpDir); } - $createDir($tmpDir); - if ($projectConfigFile !== null) { $allCustomConfigFiles = self::getConfigFiles( $currentWorkingDirectoryFileHelper,