From 9d68817cacdc87e509eb82ca5f54d01c6b2af047 Mon Sep 17 00:00:00 2001 From: Ondrej Mirtes Date: Wed, 14 Jul 2021 23:09:11 +0200 Subject: [PATCH] Memory optimization --- src/Analyser/LazyScopeFactory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Analyser/LazyScopeFactory.php b/src/Analyser/LazyScopeFactory.php index d9ac4ca85b..23abbeeedd 100644 --- a/src/Analyser/LazyScopeFactory.php +++ b/src/Analyser/LazyScopeFactory.php @@ -89,7 +89,7 @@ public function create( $this->container->getByType(Standard::class), $this->container->getByType(TypeSpecifier::class), $this->container->getByType(PropertyReflectionFinder::class), - $this->container->getByType(\PHPStan\Parser\Parser::class), + $this->container->getService('currentPhpVersionSimpleParser'), $this->container->getByType(NodeScopeResolver::class), $context, $declareStrictTypes,