From 0b5fb6fdd1bad2c8025bd61026a51c0ad9d178d3 Mon Sep 17 00:00:00 2001 From: tianfenghan Date: Wed, 25 Feb 2026 11:32:59 +0800 Subject: [PATCH] =?UTF-8?q?fix(stub):=20=E4=BF=AE=E5=A4=8D=E7=94=9F?= =?UTF-8?q?=E6=88=90=E7=9A=84=E5=87=BD=E6=95=B0=E5=90=8D=E5=A4=A7=E5=B0=8F?= =?UTF-8?q?=E5=86=99=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 getDeclarationName 方法中添加 strtolower 确保名称为小写 - 在 getArgInfoName 方法中添加 strtolower 确保下划线名称为小写 - 统一函数声明和参数信息名称的大小写处理逻辑 --- bin/gen_stub.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/gen_stub.php b/bin/gen_stub.php index 2933841a..8c271375 100755 --- a/bin/gen_stub.php +++ b/bin/gen_stub.php @@ -978,7 +978,7 @@ class FunctionName implements FunctionOrMethodName { } public function getDeclarationName(): string { - return implode('_', $this->name->getParts()); + return strtolower(implode('_', $this->name->getParts())); } public function getFunctionName(): string { @@ -990,7 +990,7 @@ class FunctionName implements FunctionOrMethodName { } public function getArgInfoName(): string { - $underscoreName = implode('_', $this->name->getParts()); + $underscoreName = strtolower(implode('_', $this->name->getParts())); return "arginfo_$underscoreName"; }