Skip to content

Releases: beberlei/assert

v2.7.4

14 Mar 18:16
Compare
Choose a tag to compare

2.7.4 - 2017-03-14

Added assertions

Other changes

  • Unit tests no longer using deprecated exception methods (Thanks to Richard Quadling)
  • All global namespaced functions have been optimised (Thanks to Andreas Möller)

v2.7.3

24 Jan 15:15
Compare
Choose a tag to compare

2.7.3 - 2017-01-24

Fixes

  • Fix Assert\Assertion::integerish() when used with a resource (Thanks to manuxi)

v2.7.2

09 Jan 09:21
Compare
Choose a tag to compare

2.7.2 - 2017-01-09

Fixes

  • Backward compatibility fixes for PHP 5.3

v2.7.1

06 Jan 18:10
Compare
Choose a tag to compare

2.7.1 - 2017-01-06

Added assertions

Other changes

  • Exception messages can now be constructed via a callback.
  • Documentation now includes types.

v2.6.9

04 Jan 18:25
Compare
Choose a tag to compare

2.6.9 - 2017-01-04

Added assertions

Other changes

  • Added types to generated documentation.
  • Added PHPStan analysis for PHP 7+

v2.6.8

05 Dec 11:33
Compare
Choose a tag to compare

2.6.8 - 2016-12-05

Fixes

  • All exceptions thrown by this library extend \Assert\InvalidArgumentException (Thanks to Richard Quadling)

Other changes

v2.6.7

14 Nov 16:52
Compare
Choose a tag to compare

2.6.7 - 2016-11-14

Fixes

Other changes

Deprecation notice

  • The functions in the Assert namespace (\Assert\that(), \Assert\thatAll(), \Assert\thatNullOr() and \Assert\lazy()) are now marked as deprecated.
    They will be removed in the next major release.
    They have been replaced with the static methods \Assert\Assert::that(), \Assert\Assert::thatAll(), \Assert\Assert::thatNullOr() and \Assert\Assert::lazy()

v2.6.6

31 Oct 12:10
Compare
Choose a tag to compare

v2.6.5

17 Oct 17:39
Compare
Choose a tag to compare

2.6.5 - 2016-10-11

Added assertions

  • Assert\Assertion::between()
  • Assert\Assertion::betweenExclusive()

Fixes

Other changes

  • Upgraded regex and unit tests for Assert\Assertion::url() to latest from Symfony/Validator
  • Added PHP-CS
  • Speed up of builds for Travis

v2.6.4

03 Oct 10:59
Compare
Choose a tag to compare

Added assertions

  • e164 - The international public telecommunication numbering plan
  • interfaceExists
  • ip / ipv4 / ipv6
  • keyNotExists
  • null
  • satisfy - Allows for a bespoke assertion, rather than a predefined one.

Fixes

  • Improved the reporting of the value for min and max assertions.

Other changes

  • Removed composer.lock file from library
  • Improved travis build to detect incorrect documentation changes