Skip to content

Commit

Permalink
remove NodeNameResolver config, breaks much more rules
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Oct 27, 2021
1 parent 9727b9d commit cb028ac
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,6 @@ public function createEmulativeLexer(): Lexer
*/
public function createPHPStanParser(): Parser
{
$nameResolver = $this->container->getByType(NameResolver::class);

// override native PHPStan name resolver to keep original names
$privatesAccessor = new PrivatesAccessor();
$privatesAccessor->setPrivateProperty($nameResolver, 'preserveOriginalNames', true);
$privatesAccessor->setPrivateProperty($nameResolver, 'replaceNodes', false);

return $this->container->getService('currentPhpVersionRichParser');
}

Expand Down

0 comments on commit cb028ac

Please sign in to comment.