Skip to content

Commit 518b20d

Browse files
committed
Configurable result cache path
1 parent b5a2fe2 commit 518b20d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

conf/config.neon

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ parameters:
9393
earlyTerminatingFunctionCalls: []
9494
memoryLimitFile: %tmpDir%/.memory_limit
9595
tempResultCachePath: %tmpDir%/resultCaches
96+
resultCachePath: %tmpDir%/resultCache.php
9697
staticReflectionClassNamePatterns:
9798
- '#^PhpParser\\#'
9899
- '#^PHPStan\\#'
@@ -240,6 +241,7 @@ parametersSchema:
240241
earlyTerminatingFunctionCalls: listOf(string())
241242
memoryLimitFile: string()
242243
tempResultCachePath: string()
244+
resultCachePath: string()
243245
staticReflectionClassNamePatterns: listOf(string())
244246
dynamicConstantNames: listOf(string())
245247
customRulesetUsed: bool()
@@ -390,7 +392,7 @@ services:
390392
-
391393
implement: PHPStan\Analyser\ResultCache\ResultCacheManagerFactory
392394
arguments:
393-
cacheFilePath: %tmpDir%/resultCache.php
395+
cacheFilePath: %resultCachePath%
394396
tempResultCachePath: %tempResultCachePath%
395397
analysedPaths: %analysedPaths%
396398
composerAutoloaderProjectPaths: %composerAutoloaderProjectPaths%
@@ -401,7 +403,7 @@ services:
401403
-
402404
class: PHPStan\Analyser\ResultCache\ResultCacheClearer
403405
arguments:
404-
cacheFilePath: %tmpDir%/resultCache.php
406+
cacheFilePath: %resultCachePath%
405407
tempResultCachePath: %tempResultCachePath%
406408

407409
-

0 commit comments

Comments
 (0)