public function getParameterTypes(\ReflectionParameter $parameter) : array
    {
        $name = $parameter->getName();
        $function = $parameter->getDeclaringFunction();
        $types = $this->getFunctionParameterTypes($function);

        return isset($types[$name]) ? $types[$name] : [];
    }
public function getParameterTypes(\ReflectionParameter $parameter) : array
    {
        $name = $parameter->getName();
        $function = $parameter->getDeclaringFunction();
        $types = $this->getFunctionParameterTypes($function);

        return isset($types[$name]) ? $types[$name] : [];
    }
public function getParameterTypes ( \ ReflectionParameter $ parameter ) : array { $ name = $ parameter -> getName ( ) ; $ function = $ parameter -> getDeclaringFunction ( ) ; $ types = $ this -> getFunctionParameterTypes ( $ function ) ; return isset ( $ types [ $ name ] ) ? $ types [ $ name ] : [ ] ; }
Returns the types documented on a parameter.

@param \ReflectionParameter $parameter

@return array
Returns the types documented on a parameter .