You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[](https://packagist.org/packages/valbeat/result)
6
-
7
3
A Result type implementation for PHP inspired by Rust's `Result<T, E>` type.
8
4
9
5
This library provides a robust way to handle operations that might fail, without relying on exceptions. It encourages explicit error handling and makes it impossible to accidentally ignore errors.
@@ -152,23 +148,6 @@ All Result types (both Ok and Err) implement these methods:
152
148
#### Pattern Matching
153
149
-`match(callable $okFn, callable $errFn): mixed` - Pattern match on the Result
154
150
155
-
## Development
156
-
157
-
### Running Tests
158
-
```bash
159
-
composer test
160
-
```
161
-
162
-
### Static Analysis
163
-
```bash
164
-
composer phpstan
165
-
```
166
-
167
-
### Run All Checks
168
-
```bash
169
-
composer check
170
-
```
171
-
172
151
## License
173
152
174
153
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
0 commit comments