mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-07 03:40:50 +00:00
[parser] use simple parser to remove unsupported code (#1789)
This commit is contained in:
parent
7c14a98e54
commit
94ef798f75
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user