Skip to content

refactor(validation): 调整验证器参数类型声明以支持null值#67

Open
Mr-GD wants to merge 1 commit intoinhere:masterfrom
Mr-GD:fix_nullable_param
Open

refactor(validation): 调整验证器参数类型声明以支持null值#67
Mr-GD wants to merge 1 commit intoinhere:masterfrom
Mr-GD:fix_nullable_param

Conversation

@Mr-GD
Copy link

@Mr-GD Mr-GD commented Feb 28, 2026

  • 修改ErrorMessageTrait中的getMessage方法参数类型顺序
  • 更新ScopedValidatorsTrait中fileValidator方法的suffixes参数类型
  • 更新ScopedValidatorsTrait中imageValidator方法的suffixes参数类型
  • 更新ScopedValidatorsTrait中mimesValidator方法的types参数类型
  • 调整Validators类中float方法的min和max参数类型顺序
  • 调整Validators类中integer方法的min和max参数类型顺序
  • 调整Validators类中int方法的min和max参数类型顺序
  • 调整Validators类中number方法的min和max参数类型顺序
  • 调整Validators类中num方法的min和max参数类型顺序
  • 调整Validators类中string方法的maxLen参数类型顺序
  • 调整Validators类中size方法的min和max参数类型顺序
  • 调整Validators类中between方法的min和max参数类型顺序
  • 调整Validators类中range方法的min和max参数类型顺序
  • 调整Validators类中length方法的minLen和maxLen参数类型顺序
  • 调整Validators类中regexp方法的default参数类型
  • 调整Validators类中regex方法的default参数类型

fix: #66

- 修改ErrorMessageTrait中的getMessage方法参数类型顺序
- 更新ScopedValidatorsTrait中fileValidator方法的suffixes参数类型
- 更新ScopedValidatorsTrait中imageValidator方法的suffixes参数类型
- 更新ScopedValidatorsTrait中mimesValidator方法的types参数类型
- 调整Validators类中float方法的min和max参数类型顺序
- 调整Validators类中integer方法的min和max参数类型顺序
- 调整Validators类中int方法的min和max参数类型顺序
- 调整Validators类中number方法的min和max参数类型顺序
- 调整Validators类中num方法的min和max参数类型顺序
- 调整Validators类中string方法的maxLen参数类型顺序
- 调整Validators类中size方法的min和max参数类型顺序
- 调整Validators类中between方法的min和max参数类型顺序
- 调整Validators类中range方法的min和max参数类型顺序
- 调整Validators类中length方法的minLen和maxLen参数类型顺序
- 调整Validators类中regexp方法的default参数类型
- 调整Validators类中regex方法的default参数类型
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

v3.0.1版本兼容问题

1 participant