Skip to content

Commit

Permalink
rmeove use of PropertyHookNameVisitor
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Jan 5, 2025
1 parent 305e60f commit 1a1427c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/PhpDocParser/PhpParser/SmartPhpParserFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
use PhpParser\Parser;
use PhpParser\ParserFactory;
use PHPStan\Parser\CachedParser;
use PHPStan\Parser\PropertyHookNameVisitor;
use PHPStan\Parser\SimpleParser;
use PHPStan\Parser\VariadicFunctionsVisitor;
use PHPStan\Parser\VariadicMethodsVisitor;
Expand Down Expand Up @@ -43,14 +42,12 @@ private function createPHPStanParser(Parser $parser): CachedParser
$nameResolver = new NameResolver();
$variadicMethodsVisitor = new VariadicMethodsVisitor();
$variadicFunctionsVisitor = new VariadicFunctionsVisitor();
$propertyHookNameVisitor = new PropertyHookNameVisitor();

$simpleParser = new SimpleParser(
$parser,
$nameResolver,
$variadicMethodsVisitor,
$variadicFunctionsVisitor,
$propertyHookNameVisitor
$variadicFunctionsVisitor
);

return new CachedParser($simpleParser, 1024);
Expand Down

0 comments on commit 1a1427c

Please sign in to comment.