Dunglas\PhpDocToTypeHint\Converter::getType PHP Метод

getType() приватный Метод

Commonly used type aliases are normalized and a whitelist for all-lowercase types is applied.
private getType ( Tag $tag ) : array
$tag phpDocumentor\Reflection\DocBlock\Tag
Результат array
    private function getType(Tag $tag) : array
    {
        $type = $this->getTypeFromTag($tag);
        if (!$type) {
            return $type;
        }
        $typeDesc = $type[0];
        if ($typeDesc === strtolower($typeDesc)) {
            $typeDesc = $this->normalizeType($typeDesc);
            // match all-lowercase types against known types
            if (!in_array($typeDesc, static::TYPES)) {
                return [];
            }
        }
        return $type;
    }