refactor(type): 移除不必要的类实例断言检查

- 删除了 MapType 类中冗余的 get_class 断言验证
- 简化了类型比较逻辑,提升代码简洁性
- 更新版本号从 1055 到 1057
pull/1/head
韩天峰 3 months ago
parent 1ea7ec0764
commit 28d1432664
  1. 2
      src/gen_stub.php
  2. 2
      version.txt

@ -207,8 +207,6 @@ class ArrayType extends SimpleType {
return false;
}
assert(get_class($other) === self::class);
return Type::equals($this->keyType, $other->keyType) &&
Type::equals($this->valueType, $other->valueType);
}

@ -1 +1 @@
1055
1057

Loading…
Cancel
Save