Skip to content

Releases: someniatko/php-result-type

1.5.0 - PHP 8.3, PHP 8.4

26 Nov 14:51

Choose a tag to compare

  • support PHP 8.3, PHP 8.4
  • drop support for PHP 7.4, 8.0, 8.1

1.4.0 - Result::all()

20 Jun 08:46

Choose a tag to compare

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

04 May 16:37

Choose a tag to compare

add @psalm-pure annotation to appropriate static methods

1.3.1 - Support PHP 8.2

02 May 09:46

Choose a tag to compare

Claim PHP 8.2 support

1.3.0 - ensure() for Option and Result

24 Oct 19:38

Choose a tag to compare

introduce `Option::ensure()`, `Result::ensure()`

1.2.0 - Introduce Option and add helpers for Result

29 Jul 17:16

Choose a tag to compare

introduce Option::fromNullable() and ->toNullable()

1.1.1 - improve `get()` docblocks

20 Jul 21:00

Choose a tag to compare

add precise return types to Error#get() and Success#get()

1.1.0 - add `getOr()`, `getOrThrow()`

07 Jul 21:01

Choose a tag to compare

allow non-pure callables again

First release

20 Apr 13:48
1363321

Choose a tag to compare

1.0.0

Initial commit