Skip to content

Commit

Permalink
[parser] use simple parser to remove unsupported code
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Feb 9, 2022
1 parent 7c14a98 commit 19b2224
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion config/phpstan/parser.neon
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -26,3 +33,8 @@ services:
parser: @currentPhpVersionPhpParser
lexer: @currentPhpVersionLexer
autowired: no

rectorSimpleParser:
class: PHPStan\Parser\SimpleParser
arguments:
parser: @currentPhpVersionPhpParser

0 comments on commit 19b2224

Please sign in to comment.