Rust-style Option and Result Classes for PHP

tags

implement Option::or with support for callables, update some other docs

artifacts

Finalise Option refactor

artifacts

add Result::and and Result::andThen with docs and tests

artifacts

implement Option::expect, Result::expect and Result::expectErr with tests and docs

artifacts

Typo in README code sample

artifacts

Add Option::mapOr() and Result::mapOr(), fix Result::mapErr() return type

artifacts

harden tests

artifacts

Breaking: Some(null) creates a None type

artifacts

Merge Option::unwrapOr and Option::unwrapOrElse, allow lazy evaluation for Result::unwrapOr

artifacts

add documentation

artifacts

fix test/lint workflow and commit linted changes

artifacts

adds `unwrapOrElse` methods

artifacts

Re-wrote test suite, added Pint, linted codebase, updated CI workflow with composer lint and composer test

artifacts

Option and Result initialise with a `true` value if no arguments are provided

artifacts

Initial release with basic Option and Result

artifacts