Abdul Malik Ikhsan f004f290c7
[Solid] Improve MoveVariableDeclarationNearReferenceRector : skip variable with usage in multiple level (#4643)
* [Solid] Improve MoveVariableDeclarationNearReferenceRector : skip variabel with usage in multiple level

* function name and var name

* stop calling parent attribute when previous of parent is an Expression with Assign with same variable

* phpstan

* deep up usage

* deeeeep level

* stop while when previous is Expression with Assign same var

* final touch

* [ci-review] Rector Rectify

* keep comment

* cast isFoundNext

* fixed

* separate method

* [ci-review] Rector Rectify

* clean up fixtures

Co-authored-by: rector-bot <tomas@getrector.org>
2020-11-18 21:26:54 +00:00
..