Skip to content

Commit f4e7ce8

Browse files
committed
Overridable static reflection class name patterns
1 parent 7cd1d70 commit f4e7ce8

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

conf/config.neon

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ parameters:
7171
earlyTerminatingMethodCalls: []
7272
earlyTerminatingFunctionCalls: []
7373
memoryLimitFile: %tmpDir%/.memory_limit
74+
staticReflectionClassNamePatterns:
75+
- '#^PhpParser\\#'
76+
- '#^Hoa\\#'
7477
dynamicConstantNames:
7578
- ICONV_IMPL
7679
- PHP_VERSION
@@ -193,6 +196,7 @@ parametersSchema:
193196
earlyTerminatingMethodCalls: arrayOf(listOf(string()))
194197
earlyTerminatingFunctionCalls: listOf(string())
195198
memoryLimitFile: string()
199+
staticReflectionClassNamePatterns: listOf(string())
196200
dynamicConstantNames: listOf(string())
197201
customRulesetUsed: bool()
198202
rootDir: string()
@@ -994,9 +998,7 @@ services:
994998
class: PHPStan\Reflection\ReflectionProvider\ClassWhitelistReflectionProvider
995999
arguments:
9961000
reflectionProvider: @betterReflectionProvider
997-
patterns:
998-
- '#^PhpParser\\#'
999-
- '#^Hoa\\#'
1001+
patterns: %staticReflectionClassNamePatterns%
10001002
autowired: false
10011003

10021004
betterReflectionSourceLocator:

0 commit comments

Comments
 (0)