Skip to content
This repository has been archived by the owner on Sep 26, 2023. It is now read-only.

Incorrect @return broke PHPStorm autocomplete #3

Closed
sc0rp10 opened this issue Aug 11, 2016 · 1 comment
Closed

Incorrect @return broke PHPStorm autocomplete #3

sc0rp10 opened this issue Aug 11, 2016 · 1 comment

Comments

@sc0rp10
Copy link

sc0rp10 commented Aug 11, 2016

In \BehEh\Flaps\Flaps::getFlap given incorrect PHPDoc: leading backslash missed and this broke PHPStorm' autocomplete (see attached screenshot). IDE resolves BehEh\Flaps\Flap as nested namespace \BehEh\Flaps\Flaps\BehEh\Flaps\Flap.
If I add backslash in @return autocomplete works fine.

    /**
     * Creates a new Flap and returns it, setting default violation handler.,
     * @param string $name the name of the flap
     * @return BehEh\Flaps\Flap the created flap here <- here
     */

@beheh beheh closed this as completed in ab48d03 Aug 11, 2016
@beheh
Copy link
Owner

beheh commented Aug 11, 2016

Thanks for the report!

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

No branches or pull requests

2 participants