phpDocumentor/TypeResolver

callable phpdoc is not working without parameter

voku opened this issue · 0 comments

voku commented

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');
    }