Version 2.1 of Yii Validator package has been released. Here is the list of changes included in the new version:
- merge rules from PHP attributes with rules provided via
getRules()
method; - use
Yiisoft\NetworkUtilities\IpRanges
inIp
rule: addgetIpRanges()
method and deprecategetRanges()
,getNetworks()
,isAllowed()
methods; - use
NEGATION_CHARACTER
constant fromnetwork-utilities
package inIpHandler
instead of declaring its own constant.