Phan\Language\Type::isNativeTypeString PHP Метод

isNativeTypeString() приватный статический Метод

См. также: Phan\Deprecated\Util::is_native_type Formerly `function is_native_type`
private static isNativeTypeString ( string $type_name ) : boolean
$type_name string
Результат boolean True if this is a native type (like int, string, etc.)
    private static function isNativeTypeString(string $type_name) : bool
    {
        return in_array(str_replace('[]', '', strtolower($type_name)), ['int', 'float', 'bool', 'true', 'string', 'closure', 'callable', 'array', 'null', 'object', 'resource', 'mixed', 'void']);
    }