fix(stub): 修复生成的函数名大小写问题

- 在 getDeclarationName 方法中添加 strtolower 确保名称为小写
- 在 getArgInfoName 方法中添加 strtolower 确保下划线名称为小写
- 统一函数声明和参数信息名称的大小写处理逻辑
pull/1/head
韩天峰 6 months ago
parent 095f9e8c66
commit 0b5fb6fdd1
  1. 4
      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";
}

Loading…
Cancel
Save