Releases: beberlei/assert
Releases · beberlei/assert
v2.7.5
2.7.5 - 2017-04-29
Added assertions
Assert\Assertion:isResource()(Thanks to Timothy Younger)
Other changes
- Corrected doc-block for
Assert\Assertion::propertiesExist().
v2.7.4
2.7.4 - 2017-03-14
Added assertions
Assert\Assertion::objectOrClass()(Thanks to Timothy Younger)Assert\Assertion::propertyExists()(Thanks to Timothy Younger)Assert\Assertion::propertiesExist()(Thanks to Timothy Younger)
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
v2.7.2
v2.7.1
2.7.1 - 2017-01-06
Added assertions
Assert\Assertion::extensionVersion()(Thanks to Timothy Younger)Assert\Assertion::phpVersion()(Thanks to Timothy Younger)Assert\Assertion::version()(Thanks to Timothy Younger)
Other changes
- Exception messages can now be constructed via a callback.
- Documentation now includes types.
v2.6.9
2.6.9 - 2017-01-04
Added assertions
Assert\Assertion::defined()(Thanks to Timothy Younger)Assert\Assertion::extensionLoaded()(Thanks to Timothy Younger)
Other changes
- Added types to generated documentation.
- Added PHPStan analysis for PHP 7+
v2.6.8
2.6.8 - 2016-12-05
Fixes
- All exceptions thrown by this library extend
\Assert\InvalidArgumentException(Thanks to Richard Quadling)
Other changes
- Update to php-cs-fixer ^2.0 release (Thanks to Raphael Stolt)
- Simplify XDebug disabling for Travis (Thanks to Raphael Stolt)
- Use PSR-4 autoloading (Thanks to Andreas Möller)
- Enable Composer package sorting (Thanks to Raphael Stolt)
- Fix grammar in documentation (Thanks to Adrian Föder)
v2.6.7
2.6.7 - 2016-11-14
Fixes
- Fix the interfaceExists assertion
- Fixed issue in document generator (Thanks to Taco van den Broek)
Other changes
- Added ability to capture multiple errors on a single value in a chain (Thanks to Alec Carpenter)
- Use static factory methods instead of functions in the Assert namespace (Thanks to Taco van den Broek)
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
2.6.6 - 2016-10-31
Other changes
v2.6.5
2.6.5 - 2016-10-11
Added assertions
Assert\Assertion::between()Assert\Assertion::betweenExclusive()
Fixes
- Allow
http://localhostas a valid URL - fixes Assertion::url('http://localhost') not a valid url?
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