Skip to content

Commit

Permalink
Bump to PHPStan ^2.1.1 and remove usage of PropertyHookNameVisitor on…
Browse files Browse the repository at this point in the history
… SimpleParser (#6649)
  • Loading branch information
samsonasik authored Jan 5, 2025
1 parent 1d078fa commit 92b4999
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build/target-repository/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"require": {
"php": "^7.4|^8.0",
"phpstan/phpstan": "^2.1.0"
"phpstan/phpstan": "^2.1.1"
},
"autoload": {
"files": [
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"ocramius/package-versions": "^2.9",
"ondram/ci-detector": "^4.2",
"phpstan/phpdoc-parser": "^2.0",
"phpstan/phpstan": "^2.1.0",
"phpstan/phpstan": "^2.1.1",
"react/event-loop": "^1.5",
"react/promise": "^3.2",
"react/socket": "^1.15",
Expand Down
3 changes: 0 additions & 3 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
);

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

0 comments on commit 92b4999

Please sign in to comment.