> This page is for SDK, version Legacy.
> For other versions, use one of these documentation indexes:
> - Current (default): https://buildwithfern.com/learn/sdks/current/llms.txt
> - Legacy: https://buildwithfern.com/learn/sdks/legacy/llms.txt

> For clean Markdown content of this page, append .md to this URL. For the complete documentation index, see https://buildwithfern.com/learn/llms.txt.

## 2.1.2

**`(fix):`** 修复 `generateClientInterfaces` 以为仅聚合器客户端（持有子客户端属性但没有直接 API 端点的客户端）生成接口。之前，这些客户端被跳过，导致顶层客户端和中间分组客户端没有接口。

接口现在包括每个子客户端的类型化获取器方法签名（例如，
`getUsers(): UsersClientInterface`），相应的客户端类实现这些
获取器。

## 2.1.1

**`(fix):`** 修复核心运行时类中的 PHPStan 静态分析错误。收紧返回类型
（例如，`castKey` 现在返回 `int|string` 而不是 `mixed`），添加缺失的 null 检查，
并改进 JsonSerializer、JsonDeserializer 和 Utils 中的 PHPDoc 注释。
还修复了 `BaseApiException::__toString()` 使用 `getCode()` 而不是直接属性访问和对非标量 body 值使用 `print_r()`。

**`(fix):`** 为分页模板泛型（`CursorPager`、`OffsetPager`）添加 `of object` 边界
以满足 PHPStan 对对象类型 `clone` 的要求。