2024-05-22 550次浏览

Yii Validator包更新了以下增强和修复:

  • added getFirstErrorMessagesIndexedByPath() and getFirstErrorMessagesIndexedByAttribute() methods to Result;
  • added rules for validating value types - boolean , float , integer , string ;
  • added Result::add() method for merging other results to the base one;
  • added UniqueIterable rule;
  • added AnyRule rule.