Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removeUnusedImports may cause invalid removal on conflict use statements last name #8655

Closed
samsonasik opened this issue May 25, 2024 · 1 comment · Fixed by rectorphp/rector-src#5912
Assignees
Labels

Comments

@samsonasik
Copy link
Member

Bug Report

Subject Details
Rector version e.g. dev-main (invoke vendor/bin/rector --version)

Minimal PHP Code Causing Issue

namespace A;

use Some\Class_;
use PhpParser\Node;

final class DemoFile
{
    /**
     * @param Node\Stmt\Class_ $param
     */
    public function run($param): void
    {
        
    }
    
}

https://getrector.com/demo/9846e4d2-c146-4375-9c90-799e00c2b1dd

Expected Behaviour

It should be skipped.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
1 participant