Skip to content

Releases: cmanley/PHP-Validate

0.9.10

0.9.10 Pre-release
Pre-release

Choose a tag to compare

@cmanley cmanley released this 16 Mar 17:20
  • Require at least PHP 7.4
  • Fix some PHP 8.4 E_DEPRECATED warnings relating to nullable parameters.

0.9.9

Choose a tag to compare

@cmanley cmanley released this 02 May 09:55
  • Require at least PHP 7.1.
  • Use strict typing.
  • Add type hints to method parameters and results.

0.9.8

0.9.8 Pre-release
Pre-release

Choose a tag to compare

@cmanley cmanley released this 03 Nov 16:47
  • 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

Choose a tag to compare

@cmanley cmanley released this 10 Nov 08:22
a6004b3

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

0.9.6

0.9.6 Pre-release
Pre-release

Choose a tag to compare

@cmanley cmanley released this 05 May 09:28

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)

Choose a tag to compare

@cmanley cmanley released this 12 Feb 21:22

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

Pre-release Pre-release
Pre-release

Choose a tag to compare

@cmanley cmanley released this 01 Jul 18:50

Overhauled validate_pos().

Pre-release

Pre-release Pre-release
Pre-release

Choose a tag to compare

@cmanley cmanley released this 27 May 06:52

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

Pre-release

Pre-release Pre-release
Pre-release

Choose a tag to compare

@cmanley cmanley released this 13 Jun 20:50

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