From 61afa2570b231acddac8771e6a51184ec0fb5d3e Mon Sep 17 00:00:00 2001 From: Bartosz Date: Tue, 8 Sep 2026 14:43:07 +0200 Subject: [PATCH 1/4] Use X.Y.Z Git tags in the release instructions. --- RELEASING.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RELEASING.md b/RELEASING.md index 8eaf64c..cae4995 100644 --- a/RELEASING.md +++ b/RELEASING.md @@ -5,9 +5,9 @@ 3. Update the `CHANGELOG.md` for the impending release. 4. `git commit -am "release X.Y.Z"` (where X.Y.Z is the new version). 5. Push to Github, make a PR to the `main` branch, and when approved, merge. -6. Make a release on Github from the `main` branch, specify tag as `vX.Y.Z` to create a tag. +6. Make a release on Github from the `main` branch, specify tag as `X.Y.Z` to create a tag. [Packagist](https://packagist.org/packages/castle/castle-php) is configured to -auto-update from the repository, so pushing the `vX.Y.Z` tag publishes the new +auto-update from the repository, so pushing the `X.Y.Z` tag publishes the new version. If the webhook is not configured, trigger an update manually from the package page on Packagist. From 5b4375618909b3b6ff0fcac5d2a5df95516dc30e Mon Sep 17 00:00:00 2001 From: Bartosz Date: Tue, 8 Sep 2026 14:53:38 +0200 Subject: [PATCH 2/4] Release 4.1.1. --- CHANGELOG.md | 2 ++ lib/Castle/Castle.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5f30030..b09a635 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,6 @@ # Changelog +## 4.1.1 + ## 4.1.0 * added `Castle\PaymentRequiredError` (`Castle_PaymentRequiredError`) for HTTP 402 responses diff --git a/lib/Castle/Castle.php b/lib/Castle/Castle.php index 9ee624b..5e26ff3 100755 --- a/lib/Castle/Castle.php +++ b/lib/Castle/Castle.php @@ -4,7 +4,7 @@ abstract class Castle { - const VERSION = '4.1.0'; + const VERSION = '4.1.1'; const HEADER_COOKIE = 'Cookie'; const HEADER_USER_AGENT = 'User-Agent'; From b4263bcc8b480c6af28a9845e5d059f79dd42130 Mon Sep 17 00:00:00 2001 From: Bartosz Date: Tue, 8 Sep 2026 14:54:31 +0200 Subject: [PATCH 3/4] Note that 4.1.1 has no changes. --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b09a635..0e56f92 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ # Changelog ## 4.1.1 +* no changes ## 4.1.0 * added `Castle\PaymentRequiredError` (`Castle_PaymentRequiredError`) for HTTP 402 responses From a08ab1290f13dac6461a86376bcfb3ee015be549 Mon Sep 17 00:00:00 2001 From: Bartosz Date: Tue, 8 Sep 2026 14:56:09 +0200 Subject: [PATCH 4/4] Read the request-context version from Castle::VERSION in specs. --- test/RequestContextTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/RequestContextTest.php b/test/RequestContextTest.php index c623146..89d2a55 100644 --- a/test/RequestContextTest.php +++ b/test/RequestContextTest.php @@ -28,7 +28,8 @@ public function contextProvider() { } public function contextJsonProvider() { - return array(array('{"ip":"8.8.8.8","headers":{"User-Agent":"TestAgent","X-Castle-Client-Id":"1ccf8dee-904b-4d20-8a88-55ded468bcc5"},"library":{"name":"castle-php","version":"4.1.0"}}')); + $contexts = $this->contextProvider(); + return array(array(json_encode($contexts[0][0]))); } /**