[parser] use simple parser to remove unsupported code (#1789)

This commit is contained in:
Tomas Votruba 2022-02-09 01:59:39 +01:00 committed by GitHub
parent 7c14a98e54
commit 94ef798f75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,11 +12,18 @@ services:
cachedNodesByStringCountMax: %cache.nodesByStringCountMax%
autowired: false
cachedRectorSimpleParser:
class: PHPStan\Parser\CachedParser
arguments:
originalParser: @rectorSimpleParser
cachedNodesByStringCountMax: %cache.nodesByStringCountMax%
autowired: false
pathRoutingParser:
class: PHPStan\Parser\PathRoutingParser
arguments:
currentPhpVersionRichParser: @cachedRectorParser
currentPhpVersionSimpleParser: @cachedRectorParser
currentPhpVersionSimpleParser: @cachedRectorSimpleParser
php8Parser: @php8Parser
autowired: false
@ -26,3 +33,8 @@ services:
parser: @currentPhpVersionPhpParser
lexer: @currentPhpVersionLexer
autowired: no
rectorSimpleParser:
class: PHPStan\Parser\SimpleParser
arguments:
parser: @currentPhpVersionPhpParser