From 28d14326645f74cae2ff9f92bb8ecae371f4c8e2 Mon Sep 17 00:00:00 2001 From: tianfenghan Date: Wed, 3 Jun 2026 16:27:58 +0800 Subject: [PATCH] =?UTF-8?q?refactor(type):=20=E7=A7=BB=E9=99=A4=E4=B8=8D?= =?UTF-8?q?=E5=BF=85=E8=A6=81=E7=9A=84=E7=B1=BB=E5=AE=9E=E4=BE=8B=E6=96=AD?= =?UTF-8?q?=E8=A8=80=E6=A3=80=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 删除了 MapType 类中冗余的 get_class 断言验证 - 简化了类型比较逻辑,提升代码简洁性 - 更新版本号从 1055 到 1057 --- src/gen_stub.php | 2 -- version.txt | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/gen_stub.php b/src/gen_stub.php index 25774959..d6746cc7 100755 --- a/src/gen_stub.php +++ b/src/gen_stub.php @@ -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); } diff --git a/version.txt b/version.txt index ca883787..c500a5fe 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -1055 +1057