Releases: franzose/kontrolio
Releases · franzose/kontrolio
v1.5
v2.0.0
What's new
- Support for PHP < 8.1 has been dropped
- Travis CI and Scrutinizer integrations have been dropped in favor of GitHub Actions
- PHPUnit has been updated to version 9.5
- Type hints everywhere
Kontrolio\Rules\CallableRuleWrapper
and all rules have been made finalKontrolio\Rules\Core\Ip
has been renamed toKontrolio\Rules\Core\IpAddress
, the rule's constructor now takes the new\Kontrolio\Rules\Core\IpAddressVersion
enum instead ofstring
Fixed regression regarding the UntilFirstFailure rule
Refactoring
This is a minor release which does not bring anything significant but some refactoring of the internals. Also some files contained the "declare" directive, it was removed since the current library version claims to support PHP 5.6. Support of the old PHP versions is going to be dropped in the next major release.
Fixed url validation in PHP 7.3
In PHP 7.3, PCRE has been upgraded as well: literal hyphens should now be escaped. This release fixes the regular expression in the Url rule where those hyphens were not escaped.
StopsFurtherValidationInterface
With this interface applied to a rule you can halt the validation in case the constraints defined by that rule will fail to pass.
Bugfix in bugfix...
v1.4.4.1 small bugfix
Bug fixes in Length and Range
v1.4.4 Added min/max check; fixed behavior if max is null and min is not
Two new rules: Between and BetweenInclusive
v1.4.3 Added two more rules: Between and BetweenInclusive
Regex validation rule
v1.4.2 Added phpunit config to gitignore file