Releases: someniatko/php-result-type
Releases · someniatko/php-result-type
1.5.0 - PHP 8.3, PHP 8.4
- support PHP 8.3, PHP 8.4
- drop support for PHP 7.4, 8.0, 8.1
1.4.0 - Result::all()
New static method Result::all()
which either returns a Success with the list of wrapped values, if all given Results are Success, or Error with the list of wrapped Error values otherwise.
1.3.2 - add @psalm-pure annotations
add @psalm-pure annotation to appropriate static methods
1.3.1 - Support PHP 8.2
Claim PHP 8.2 support
1.3.0 - ensure() for Option and Result
introduce `Option::ensure()`, `Result::ensure()`
1.2.0 - Introduce Option and add helpers for Result
introduce Option::fromNullable() and ->toNullable()
1.1.1 - improve `get()` docblocks
add precise return types to Error#get() and Success#get()
1.1.0 - add `getOr()`, `getOrThrow()`
allow non-pure callables again
First release
1.0.0 Initial commit