BetterReflection\Reflection\ReflectionParameter::getDocBlockTypes PHP Method

getDocBlockTypes() public method

Get the types defined in the DocBlocks. This returns an array because the parameter may have multiple (compound) types specified (for example when you type hint pipe-separated "string|null", in which case this would return an array of Type objects, one for string, one for null.
See also: getTypeHint()
public getDocBlockTypes ( ) : phpDocumentor\Reflection\Type[]
return phpDocumentor\Reflection\Type[]
    public function getDocBlockTypes()
    {
        return (new FindParameterType())->__invoke($this->function, $this->node);
    }