Releases: NexusPHP/assert
Releases · NexusPHP/assert
Release list
v1.1.1
Immutable
release. Only release title and notes can be modified.
Fixed
- Preserved
list<>,non-empty-list<>, andnon-empty-array<>shapes when narrowing throughkeys()/values(); previously the rebuilt iterable lost its accessory wrappers (e.g.list<mixed>downgraded toarray<int<0, max>, mixed>)
Full Changelog: v1.1.0...v1.1.1
v1.1.0
Immutable
release. Only release title and notes can be modified.
Added
keys()andvalues()iterating expectations to apply assertions across an iterable's keys or valuesisBetween(float|int $min, float|int $max, bool $inclusive = true)expectation for numeric range checksisOneOf(non-empty-list<mixed> $choices)expectation, with PHPStan narrowing to the union of literal allowed values when the list is constanthasMinLength(int<1, max> $min)andhasMaxLength(int<1, max> $max)expectations for bounded-string checksisUrl()expectation, backed byfilter_var($value, FILTER_VALIDATE_URL)
Fixed
- Improved failure-message wording for iterating expectations (
keys(),values()) to clearly indicate which key or value triggered the failure
Full Changelog: v1.0.0...v1.1.0
v1.0.0
Immutable
release. Only release title and notes can be modified.
Added
- Initial release of Nexus Assert library
- Chainable type-safety assertions API
- Dynamic method return type extensions for PHPStan support
- Type inference for fluent assertions
- Support for PHP 8.2+
New Contributors
- @dependabot[bot] made their first contribution in #4
Full Changelog: https://github.com/NexusPHP/assert/commits/v1.0.0