Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Changelog
## 4.1.1
* no changes

## 4.1.0
* added `Castle\PaymentRequiredError` (`Castle_PaymentRequiredError`) for HTTP 402 responses

Expand Down
4 changes: 2 additions & 2 deletions RELEASING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
2 changes: 1 addition & 1 deletion lib/Castle/Castle.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
3 changes: 2 additions & 1 deletion test/RequestContextTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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])));
}

/**
Expand Down
Loading