| 1 |
# Assert release notes |
| 2 |
|
| 3 |
## Version 0.5.1 (2021-12-21) |
| 4 |
* Added `UnreachableException` to indicate unreachable code paths, as the |
| 5 |
phan hints added in 0.5.0 prevent using a constant false `$condition` in |
| 6 |
`Assert::invariant()` for this purpose. |
| 7 |
* When providing types, `'true'` or `'false'` can be specified rather than |
| 8 |
`'bool'` if only one of them should be allowed. |
| 9 |
|
| 10 |
## Version 0.5.0 (2020-02-13) |
| 11 |
* Raised required PHP version from 7.0 to 7.2 |
| 12 |
* Passing multiple types as an array (instead of pipe-separated strings) is now |
| 13 |
supported in `Assert::parameterElementType` as well. |
| 14 |
|
| 15 |
## Version 0.4.0 (2019-01-21) |
| 16 |
* Raised required PHP version from 5.3 to 7.0/HHVM |
| 17 |
* Multiple types should be provided as arrays, e.g. `[ 'int', 'bool' ]`. The previous `'int|bool'` |
| 18 |
notation is still supported, but discouraged. |
| 19 |
|
| 20 |
## Version 0.3.0 (2016-11-09) |
| 21 |
* Added `Assert::parameterKeyType` and `ParameterKeyTypeException` |
| 22 |
* Added `Assert::nonEmptyString` |
| 23 |
* Added `Traversable` as a pseudo type that not only accept traversable objects but also arrays |
| 24 |
|
| 25 |
## Version 0.2.2 (2015-04-29) |
| 26 |
* Fixed a parameter type check in `ParameterAssertionException` |
| 27 |
|
| 28 |
## Version 0.2.1 (2015-04-28) |
| 29 |
* Fixed an import in `AssertTest` |
| 30 |
|
| 31 |
## Version 0.2.0 (2015-04-13) |
| 32 |
* Added `callable` as a pseudo type that not only accepts closures but everything `is_callable` |
| 33 |
accepts |
| 34 |
* Added `AssertionException` interface |
| 35 |
* All exception classes now implement `AssertionException` |
| 36 |
|
| 37 |
## Version 0.1.0 (2014-07-30) |
| 38 |
|
| 39 |
Initial release |