public nonArrayTypes ( ) : |
||
return | A UnionType with generic types(as well as the non-generic type "array") filtered out. |
public function nonArrayTypes() : UnionType
{
return new UnionType($this->type_set->filter(function (Type $type) : bool {
return !$type->isGenericArray() && $type !== ArrayType::instance();
}));
}