Skip to content

Releases: cmanley/PHP-Validate

0.9.9

02 May 09:55
Compare
Choose a tag to compare
  • Require at least PHP 7.1.
  • Use strict typing.
  • Add type hints to method parameters and results.

0.9.8

03 Nov 16:47
Compare
Choose a tag to compare
0.9.8 Pre-release
Pre-release
  • rare breaking change: if "default" value happens to be a closure, then it is now used as is instead of being executed to get a result.

0.9.7

10 Nov 08:22
a6004b3
Compare
Choose a tag to compare

Just upped the PHP version requirement to 5.4 for short array syntax support.

0.9.6

05 May 09:28
Compare
Choose a tag to compare
0.9.6 Pre-release
Pre-release

The delete_null option is now also applied after before/after mutators have executed in case they set the value to null.

Incompatible with previous (pre-release)

12 Feb 21:22
Compare
Choose a tag to compare

Changes:

  • Specs class renamed to SpecCollection.
  • Exceptions split out into their own files and renamed:
    • Validate\ValidationException => Validate\Exception\ValidationException
    • Validate\ValidationNamedCheckException => Validate\Exception\NamedValueException
  • Improve bad input checks in Validate.
  • Validator option empty_null renamed to the more descriptive null_empty_strings. Using the old name will still work but will trigger a deprecation warning.
  • Validator option empty_delete (was default true) renamed to the more descriptive delete_null (now default false). Using the old name will still work but will trigger a deprecation warning.
  • Validate option nocase renamed to the more descriptive allowed_values_nc. Using the old name will still work but will trigger a deprecation warning.

Pre-release

01 Jul 18:50
Compare
Choose a tag to compare
Pre-release Pre-release
Pre-release

Overhauled validate_pos().

Pre-release

27 May 06:52
Compare
Choose a tag to compare
Pre-release Pre-release
Pre-release

validate_pos works now. It's a pre-release until time and usage proven.

Pre-release

13 Jun 20:50
Compare
Choose a tag to compare
Pre-release Pre-release
Pre-release

This has been tested, contains unit tests, and seems stable. For now it's a pre-release until time proven.