Bug Report
| Subject |
Details |
| Rector version |
dev-main |
Minimal PHP Code Causing Issue
Given the following code:
class Bar
{
public static function execute()
{
echo strtolower(\Foo\BaR::execute());
}
}
It got imported:
-<?php
-
+<?php
+
+use Foo\BaR;
class Bar
{
public static function execute()
{
- echo strtolower(\Foo\BaR::execute());
+ echo strtolower(BaR::execute());
}
-}
-
+}
which cause error:
Fatal error: Cannot declare class Bar because the name is already in use
see https://3v4l.org/nC7Mq
Expected Behaviour
it should be skipped.
Bug Report
Minimal PHP Code Causing Issue
Given the following code:
It got imported:
which cause error:
see https://3v4l.org/nC7Mq
Expected Behaviour
it should be skipped.