2024-02-21 476次浏览

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

  • added debug collector for yiisoft/yii-debug ;
  • added $escape parameter to methods Result::getAttributeErrorMessagesIndexedByPath() and Result::getErrorMessagesIndexedByPath() that allow change or disable symbol which will be escaped in value path elements;
  • added OneOf rule;
  • minor refactoring of EmailHandler::validate() method;
  • added more specific psalm type for "skip on empty" callable;
  • $isAttributeMissing parameter of empty conditions ( NeverEmpty , WhenEmpty , WhenMissing , WhenNull ) is made optional;
  • disabled escaping of asterisk char in value path returned by Error::getValuePath(true) .