public static function fqcn(string $name): string
    {
        $type = str_replace('[]', '', $name);

        if (class_exists($type) || interface_exists($type) && '\\' !== $type[0]) {
            return '\\' . $name;
        }

        return $name;
    }
public static function fqcn(string $name): string
    {
        $type = str_replace('[]', '', $name);

        if (class_exists($type) || interface_exists($type) && '\\' !== $type[0]) {
            return '\\' . $name;
        }

        return $name;
    }
public static function fqcn ( string $ name ) : string { $ type = str_replace ( '[]' , '' , $ name ) ; if ( class_exists ( $ type ) || interface_exists ( $ type ) && '\\' !== $ type [ 0 ] ) { return '\\' . $ name ; } return $ name ; }
Return fully qualified class name. Support "typed arrays" syntax.

@param string $name
@return string
Return fully qualified class name . Support typed arrays syntax .