Bug Report
| Subject |
Details |
| Rector version |
dev-master@45caffd) |
| Installed as |
git clone |
I am trying to add some lines to my deploy.php (using https://github.com/deployphp/deployer). I wrote my own rector which do that, but when I turn on AUTO_IMPORT_NAMES, function Deployer\set is moved to imports like it is class, so I have:
use Deployer\set;
use function Deployer\set;
instead of
use function Deployer\set;
Minimal PHP Code Causing Issue
Failing test case #5520
Expected Behaviour
Functions are imported as use function
Bug Report
I am trying to add some lines to my deploy.php (using https://github.com/deployphp/deployer). I wrote my own rector which do that, but when I turn on AUTO_IMPORT_NAMES, function Deployer\set is moved to imports like it is class, so I have:
instead of
Minimal PHP Code Causing Issue
Failing test case #5520
Expected Behaviour
Functions are imported as
use function