From f78b98ab95c58d50364500e644d150171b46c493 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 28 Jul 2025 15:29:45 +0000 Subject: [PATCH 1/2] Initial plan From 81346d2c86a6ab838837bc18cfd1e5c47d95d2af Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 28 Jul 2025 15:32:52 +0000 Subject: [PATCH 2/2] Add Packagist version badge to README Co-authored-by: valbeat <3125309+valbeat@users.noreply.github.com> --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 464fafc..a0077e5 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # PHP Result +![Packagist Version](https://img.shields.io/packagist/v/valbeat/result) + A Result type implementation for PHP inspired by Rust's `Result` type. 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.