Abdul Malik Ikhsan
Abdul Malik Ikhsan
I created separate PR to remove duplicated register ContinueToBreakInSwitchRector that exists in both `php52` and `php73` config - https://github.com/rectorphp/rector-src/pull/6385
All checks have passed 🎉 @TomasVotruba it is ready for review. I don't rebase cherry-pick patch https://github.com/rectorphp/rector-src/pull/6385 so you can see the process and how it found a bug with...
Closing for now
It seems only happen on non-namespaced file https://getrector.com/ast/d50f4d493f7061f3c419397a744a49e92409c3ce?nodeId=7 when has namespace, it not fully qualified https://getrector.com/ast/fbf1401fbd04dfd5e9a0858f4936a39ed66cc4dd?nodeId=9
It seems bug on nikic/php-parser on NameContext https://github.com/nikic/PHP-Parser/blob/fa02db3f30ecdee4142bed51b860e1e3ca20bb5a/lib/PhpParser/NameContext.php#L124-L127 The `getNamespaceRelativeName()` should be called first.
I created PR on php-parser side: - https://github.com/nikic/PHP-Parser/pull/1067
Fixed 🎉 /cc @RuesimOfCode
All checks have passed 🎉 @TomasVotruba I think it is ready.
I can't approve my own PR, i think this is ready, just probably concern about renaming method bc break :)
Fixed 🎉 /cc @staabm