diff --git a/CHANGELOG.md b/CHANGELOG.md index 5f30030..0e56f92 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,7 @@ # Changelog +## 4.1.1 +* no changes + ## 4.1.0 * added `Castle\PaymentRequiredError` (`Castle_PaymentRequiredError`) for HTTP 402 responses 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. 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'; 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]))); } /**