-
-
Notifications
You must be signed in to change notification settings - Fork 367
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
[PHPStan ^2.1.1] Handle next unreachable statement via UnreachableStatementNode->getNextUnreachableStatements() #6642
Conversation
@ondrejmirtes I tried the it just needs sync on rector-* packages on next PHPStan 2.1.x version released :) |
5fe6616
to
305e60f
Compare
@@ -43,14 +42,12 @@ private function createPHPStanParser(Parser $parser): CachedParser | |||
$nameResolver = new NameResolver(); | |||
$variadicMethodsVisitor = new VariadicMethodsVisitor(); | |||
$variadicFunctionsVisitor = new VariadicFunctionsVisitor(); | |||
$propertyHookNameVisitor = new PropertyHookNameVisitor(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@TomasVotruba on PHPStan 2.1.0, PropertyHookNameVisitor
exists, but removed on PHPStan 2.1.1, this patch include it
…StatementNode->getNextUnreachableStatements()
…StatementNode->getNextUnreachableStatements()
1a1427c
to
c465525
Compare
All checks have passed 🎉 @TomasVotruba I am merging it and will release immediate release for it. |
Ref Latest PHPStan PR on 2.1.1 that already include getNextUnreachableStatements on
UnreachableStatementNode
node: