Skip to content

Fully qualified name of function is imported as use instead of use function #5521

@lulco

Description

@lulco

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions