Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump to PHPStan ^2.1.1 and remove usage of PropertyHookNameVisitor on SimpleParser #6649

Merged
merged 1 commit into from
Jan 5, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading