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

Class namespace detection can be incorrect with _ #214

Closed
neild3r opened this issue Oct 25, 2021 · 0 comments
Closed

Class namespace detection can be incorrect with _ #214

neild3r opened this issue Oct 25, 2021 · 0 comments

Comments

@neild3r
Copy link
Owner

neild3r commented Oct 25, 2021

There is an issue where the namespace detection can get tripped up.

See the code sample below. The type hint generated is incorrect it should be \App\Example\ExampleInterface

<?php

namespace App;

use Example_ExampleInterface;
use App\Example\ExampleInterface;

class Example implements Example_ExampleInterface
{
    /**
     * Undocumented function
     *
     * @param \Example_ExampleInterface $container
     * @author Neil Brayfield <[email protected]>
     */
    public function addExample(ExampleInterface $container)
    {
    }
}
tianyiw2013 added a commit to tianyiw2013/vscode-php-docblocker that referenced this issue Dec 10, 2021
@tianyiw2013 tianyiw2013 mentioned this issue Dec 10, 2021
1 task
@php-docblocker php-docblocker mentioned this issue Feb 11, 2022
@neild3r neild3r closed this as completed May 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant