rector/src/StaticReflection
Abdul Malik Ikhsan 3ae5f0c834
[Renaming] Handle crash on FuncCall with Arg class name conflict with use statement or namespace on RenameClassRector with auto import enabled (#2431)
* [Renaming] Handle conflict with use statement last name and namespace last name on RenameClassRector

* more fixture

* eol

* [ci-review] Rector Rectify

* Fixed 🎉

* final touch: more fixtures

* final touch: use negation of PHPStan\BetterReflection\Reflection\ReflectionClass

* final touch: clean up

* add fixture for in method call arg

* fix by verify start line < 0

* verify start coumn as well

* [ci-review] Rector Rectify

* [ci-review] Rector Rectify

* twig CI error

* back

* try with located source check

* use equal to PHPStan\BetterReflection\Reflection\ReflectionFunction

* [ci-review] Rector Rectify

* completely remove RenamedClassesSourceLocator

* Revert completely remove RenamedClassesSourceLocator

This reverts commit 097753b1e742345bb3d3f460aa5719b2f4aa0a19.

* resolved with identifier->isClass()

* final touch: add more test for static call and const fetch

Co-authored-by: GitHub Action <action@github.com>
2022-06-06 10:34:51 +02:00
..
SourceLocator [Renaming] Handle crash on FuncCall with Arg class name conflict with use statement or namespace on RenameClassRector with auto import enabled (#2431) 2022-06-06 10:34:51 +02:00
DynamicSourceLocatorDecorator.php [Rectify] [Php81] Enable Rectify on Readonly Property only (#1384) 2021-12-04 15:32:52 +03:00