Skip to content
Open
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
2 changes: 1 addition & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php-version: ['8.1', '8.2', '8.3', '8.4', '8.5']
php-version: ['7.4', '8.1', '8.2', '8.3', '8.4', '8.5']
protocol: [ 'json', 'msgpack' ]
ignorePlatformReq: [ '' ]

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Ably aims to support a wide range of platforms. If you experience any compatibil

| Platform | Support |
| --- | --- |
| PHP | 8.1, 8.2, 8.3, 8.4, 8.5 |
| PHP | 7.4 and later (tested on 7.4 and 8.1 – 8.5) |

---

Expand Down
4 changes: 2 additions & 2 deletions UPDATING.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The client `Server::createHttpClient()` returns is the same REST client as befor
| `AblyRest::setAblyAgentHeader('x', 'v')` | `Server::createHttpClient(['agents' => ['x' => 'v'], …])` |
| `AblyRest::setLibraryFlavourString('x')` | removed — use the `agents` option |
| `require 'ably-loader.php';` | removed — use Composer's autoloader (`vendor/autoload.php`) |
| PHP 7.2 – 8.0 | PHP `^8.1` (tested on 8.1 – 8.5) |
| PHP 7.2 – 8.0 | PHP 7.4 or later (tested on 7.4 and 8.1 – 8.5); 2.0.0 itself required PHP 8.1 |
| `\Ably\AblyRest` type hints | `\Ably\PubSub\PubSubHttpClient` ([091d](https://ably.atlassian.net/wiki/spaces/product/pages/5363957781)) |
| `'environment' => 'sandbox'` / `'restHost' => '…'` | `'endpoint' => …` (see [Endpoint](#endpoint-replaces-environment-and-resthost)) |

Expand Down Expand Up @@ -106,7 +106,7 @@ The `agents` option is per-client, unlike the process-global static setters it r
* `ably-loader.php`, the hand-rolled autoloader — Composer is the only supported install path.
* The `environment` and `restHost` client options — replaced by `endpoint`. They are ignored if passed.
* The `demo/` Heroku application and its `Procfile`.
* PHP 7.2 – 8.0 support.
* PHP 7.2 – 8.0 support. Releases after 2.0.0 support PHP 7.4 and later again, so only PHP 7.2 and 7.3 remain unsupported.

`Auth::authorise()`, the British-spelling alias deprecated in favour of `Auth::authorize()`, is still present in 2.0.0.

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"issues": "https://github.com/ably/ably-pubsub-php/issues"
},
"require": {
"php": "^8.1",
"php": "^7.4 || ^8.0",
"rybakit/msgpack": "^0.9.1 || ^1.0",
"ext-json" : "*",
"ext-curl" : "*",
Expand Down
5 changes: 3 additions & 2 deletions tests/factories/TestApp.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,9 @@ private function request( $mode, $url, $headers = [], $params = '' ) {
var_dump(curl_error($ch)); // Prints curl request error if exists
}

// curl_close() has no effect since PHP 8.0 and is deprecated since 8.5;
// the handle is released when $ch goes out of scope. The floor is 8.1.
// curl_close() has no effect since PHP 8.0 and is deprecated since 8.5.
// On every supported version (7.4 and later) the handle is released
// when its last reference goes away, so unset() is enough.
unset($ch);

if ($this->debugRequests) {
Expand Down
Loading