Skip to content

v1.1.1

Choose a tag to compare

@xyj2156 xyj2156 released this 10 Sep 11:57
· 5 commits to main since this release
60bb26d

修复

  • TierResolver::matchConfig 对 match 规则统一类型归一化:match.prefix / match.middleware 传单值字符串(如 'prefix' => 'admin')不再抛 count(): Argument #1 ($value) must be of type Countable|array, string given,行为与单元素数组完全等价(按段匹配、空字符串不命中等语义不变)。
  • middleware_match 增加类型守卫:传入非 string/array 类型时回落 'any' 并记录 warning(此前直接 TypeError 崩溃)。

测试

  • 新增 5 个单测:string / 数组两种写法逐条等价(prefix、middleware、两者同时)+ 空值边界回归 + 非法 middleware_match 类型回落;全量 72 tests / 189 assertions 通过。

版本

纯缺陷修复,无 API / 载荷形状变化,schemeVersion 保持 1。

1.1.0...1.1.1