-
-
Notifications
You must be signed in to change notification settings - Fork 687
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
Name called on "PhpParser\Node\Expr\MethodCall" is not possible #5690
Comments
could you run with
|
|
could you share your |
I can't reproduce it, could you try Thank you. |
A https://getrector.org/demo link is needed to reproduce. |
Same issue here. Unfortunately, I even can't reproduce the issue in the demo, but you can see live failings in those repositories:
I cannot reproduce the issue due to the use of PHPUnit, that is not included in the demo, it seems. Hoping this would help. |
Github Action is way to complicated to analyze. Failing PR test would also do. |
@TomasVotruba , it is not possible for us to replicate the issue as the demo doesn't use PHPUnit. It is not complicated, trust me. Follow those steps:
You will see the error and start better understanding what's going on. You know I can generally create a failing test case, but in this situation it is impossible for me to reproduce the bug as it only happens if the test class inherits from |
I don't talk about Rector demo, but failing test case fixture. It must be replicable in Rector test case here Here is step by step tutorial how to add it: https://github.com/rectorphp/rector/blob/master/docs/how_to_add_test_for_rector_rule.md |
Seems to be the same error as #5797.
Probably fixed with dev-master and/or next release |
@DieterHolvoet could you try |
I tried it using |
I was running into the same issue with version 0.9.31 for multiple files. Here is an extract of the debug output:
and the rector.php:
However, I tried with |
latest is currently |
@Aerendir Thank you for the repository 👍 , I'm just trying new Rector there Ref: #5690 (comment) I've tried it apart few removed sets the Rector passes well ✔️ |
Glad to be helpful and many thank you for the fix! ❤️ |
rectorphp/rector-src@104f656 [Performance] [TypeDeclaration] No need check parent method when method is private on AddVoidReturnTypeWhereNoReturnRector (#5690)
Bug Report
I debugged a bit and the
MethodCall
in question is$this->get
.Minimal PHP Code Causing Issue
Expected Behaviour
Don't fail
The text was updated successfully, but these errors were encountered: