We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi People,
I discovered a problem during my development.
Indeed, on the rule "NewlineBeforeNewAssignSetRector", I had a very strange case, and I only reproduced it within a class. Here is the initial code:
class Foo { public function bar(): void { $bar = new \stdClass(); $bar->barFoo = false; $barFoo = new \stdClass(); $barFoo->tokenize = false; } }
Rector tries to add a line after the second class declaration.
By trying several different cases it turns out that my property must have the same name as my next variable. In my case ->barFoo and $barFoo.
->barFoo
$barFoo
demo
For me is a bug in rector but i'm not sure !
The text was updated successfully, but these errors were encountered:
Resolved at rectorphp/rector-src#6705
Sorry, something went wrong.
No branches or pull requests
Bug Report
Hi People,
I discovered a problem during my development.
Indeed, on the rule "NewlineBeforeNewAssignSetRector", I had a very strange case, and I only reproduced it within a class. Here is the initial code:
Rector tries to add a line after the second class declaration.
By trying several different cases it turns out that my property must have the same name as my next variable. In my case
->barFoo
and$barFoo
.Minimal PHP Code Causing Issue
demo
Expected Behaviour
For me is a bug in rector but i'm not sure !
The text was updated successfully, but these errors were encountered: