isMatchedBy($this); } return $other instanceof self || $other instanceof MixedType; } public function inferGenericsFrom(Type $other, Generics $generics): Generics { return $generics; } public function nativeType(): UndefinedObjectType { return $this; } public function toString(): string { return 'object'; } }