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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Relative import is not detected as being used #2539

Closed
calebdw opened this issue Feb 11, 2024 · 2 comments 路 Fixed by #2542
Closed

Relative import is not detected as being used #2539

calebdw opened this issue Feb 11, 2024 · 2 comments 路 Fixed by #2542

Comments

@calebdw
Copy link

calebdw commented Feb 11, 2024

Hello!

I'm probably describing this wrong, but here's the error and the test code (also, naming things is hard---don't judge me 馃ぃ).

image

<?php

namespace Pphactor;

use Dummy;
use Funny\Fang;

class Test
{
    /**
     * @var Dummy\Foo
     */
    protected $foo;

    /**
     * @var Fang
     */
    protected $fang;
}

namespace Dummy;

class Foo
{
    public function bar(): void
    {
    }
}

namespace Funny;

class Fang
{
    public function bar(): void
    {
    }
}

Thanks!

@dantleech
Copy link
Collaborator

dantleech commented Feb 11, 2024

that PR should fix it!

@calebdw
Copy link
Author

calebdw commented Feb 11, 2024

Thank you!

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

Successfully merging a pull request may close this issue.

2 participants