Skip to content

Commit

Permalink
Merge pull request #1643 from ondrejmirtes/fix-memory-leak
Browse files Browse the repository at this point in the history
Fix memory leak
  • Loading branch information
samsonasik committed Jan 7, 2022
2 parents 49f1596 + b5dce9e commit f42b3f9
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions config/phpstan/parser.neon
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,18 @@ services:
factory: @pathRoutingParser
arguments!: []

cachedRectorParser:
class: PHPStan\Parser\CachedParser
arguments:
originalParser: @rectorParser
cachedNodesByStringCountMax: %cache.nodesByStringCountMax%
autowired: false

pathRoutingParser:
class: PHPStan\Parser\PathRoutingParser
arguments:
currentPhpVersionRichParser: @rectorParser
currentPhpVersionSimpleParser: @rectorParser
currentPhpVersionRichParser: @cachedRectorParser
currentPhpVersionSimpleParser: @cachedRectorParser
php8Parser: @php8Parser
autowired: false

Expand Down

0 comments on commit f42b3f9

Please sign in to comment.