rector/config/phpstan/parser.neon
Tomas Votruba db952265ef Updated Rector to commit 363908f477
363908f477 Fix phpstan configured parser to treat project with its code version (#1480)
2021-12-13 22:30:47 +00:00

22 lines
761 B
YAML

# see original config.neon in phpstan.neon - https://github.com/phpstan/phpstan-src/blob/386eb913abb6ac05886c5642fd48b5d99db66a20/conf/config.neon#L1582
# this file overrides definitions from the config above
services:
defaultAnalysisParser:
factory: @pathRoutingParser
arguments!: []
pathRoutingParser:
class: PHPStan\Parser\PathRoutingParser
arguments:
currentPhpVersionRichParser: @rectorParser
currentPhpVersionSimpleParser: @rectorParser
php8Parser: @php8Parser
autowired: false
rectorParser:
class: PHPStan\Parser\RichParser
arguments:
parser: @currentPhpVersionPhpParser
lexer: @currentPhpVersionLexer
autowired: no