Skip to content

callable phpdoc is not working without parameter #173

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

Closed
voku opened this issue Sep 23, 2022 · 0 comments · Fixed by #175
Closed

callable phpdoc is not working without parameter #173

voku opened this issue Sep 23, 2022 · 0 comments · Fixed by #175

Comments

@voku
Copy link
Contributor

voku commented Sep 23, 2022

I am not sure where I need to look at, if you point me to the affected code, I will try to fix it. :)

example:

    /**
     * @param callable(string): string $callback // param is detected 
     * @param callable(): numeric $callback2 // param is not found!
     *
     * @return string
     */
    public function withCallback($callback, $callback2)
    {
        return $callback('foo');
    }
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.

1 participant