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

Incorrect behavior of FixClassCaseSensitivityNameRector #6631

Closed
enumag opened this issue Aug 12, 2021 · 2 comments · Fixed by rectorphp/rector-src#660
Closed

Incorrect behavior of FixClassCaseSensitivityNameRector #6631

enumag opened this issue Aug 12, 2021 · 2 comments · Fixed by rectorphp/rector-src#660
Labels

Comments

@enumag
Copy link
Contributor

enumag commented Aug 12, 2021

Bug Report

Subject Details
Rector version last dev-master
Installed as composer dependency

Minimal PHP Code Causing Issue

See https://getrector.org/demo/1ebfb65a-6f97-6fd2-8302-49f3956ff581

<?php

declare(strict_types = 1);

namespace X {
    class Y {
    }

    function y() {
        echo 'test';
    }
}

namespace Test {
	use function \X\y;
    
    y();
}

Responsible rules

  • FixClassCaseSensitivityNameRector

Expected Behavior

No change expected. I'm not using the class but the function.

@enumag enumag added the bug label Aug 12, 2021
@TomasVotruba
Copy link
Member

Thanks, this should indeed work 👍
We'll need a test case PR with this fixture.

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

Successfully merging a pull request may close this issue.

2 participants