Skip to content

Commit

Permalink
Overridable static reflection class name patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Feb 18, 2020
1 parent 7cd1d70 commit f4e7ce8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions conf/config.neon
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ parameters:
earlyTerminatingMethodCalls: []
earlyTerminatingFunctionCalls: []
memoryLimitFile: %tmpDir%/.memory_limit
staticReflectionClassNamePatterns:
- '#^PhpParser\\#'
- '#^Hoa\\#'
dynamicConstantNames:
- ICONV_IMPL
- PHP_VERSION
Expand Down Expand Up @@ -193,6 +196,7 @@ parametersSchema:
earlyTerminatingMethodCalls: arrayOf(listOf(string()))
earlyTerminatingFunctionCalls: listOf(string())
memoryLimitFile: string()
staticReflectionClassNamePatterns: listOf(string())
dynamicConstantNames: listOf(string())
customRulesetUsed: bool()
rootDir: string()
Expand Down Expand Up @@ -994,9 +998,7 @@ services:
class: PHPStan\Reflection\ReflectionProvider\ClassWhitelistReflectionProvider
arguments:
reflectionProvider: @betterReflectionProvider
patterns:
- '#^PhpParser\\#'
- '#^Hoa\\#'
patterns: %staticReflectionClassNamePatterns%
autowired: false

betterReflectionSourceLocator:
Expand Down

0 comments on commit f4e7ce8

Please sign in to comment.