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

Find mismatching @return annotations #561

Closed
quasilyte opened this issue Jul 4, 2020 · 1 comment
Closed

Find mismatching @return annotations #561

quasilyte opened this issue Jul 4, 2020 · 1 comment

Comments

@quasilyte
Copy link
Contributor

Code Example

    /**
     * Set the current local namespace.
     * @param array|null $namespace (default: null)
     * @return array|null
     */
    public function setNamespace(array $namespace = null)
    {
        $this->namespace = $namespace;
    }

Actual Behavior

No warnings.

Expected Behavior

Warning about not returning anything from a function that promised to return something (except null) in its phpdoc.

@i582
Copy link
Contributor

i582 commented Aug 28, 2021

Will be tracked further in #1123.

@i582 i582 closed this as completed Aug 28, 2021
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