mirror of
https://github.com/predis/predis.git
synced 2026-09-01 21:27:46 +00:00
Run tests under PHP 8.3 (#1396)
This commit is contained in:
@@ -30,9 +30,12 @@ jobs:
|
||||
- '8.0'
|
||||
- '8.1'
|
||||
- '8.2'
|
||||
- '8.3'
|
||||
redis:
|
||||
- latest
|
||||
|
||||
continue-on-error: ${{ matrix.php == '8.3' }}
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
@@ -27,6 +27,7 @@ jobs:
|
||||
- '8.0'
|
||||
- '8.1'
|
||||
- '8.2'
|
||||
- '8.3'
|
||||
redis:
|
||||
- 3
|
||||
- 4
|
||||
@@ -98,6 +99,7 @@ jobs:
|
||||
- '8.0'
|
||||
- '8.1'
|
||||
- '8.2'
|
||||
- '8.3'
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@
|
||||
"require-dev": {
|
||||
"friendsofphp/php-cs-fixer": "^3.3",
|
||||
"phpstan/phpstan": "^1.9",
|
||||
"phpunit/phpunit": "^8.0 || ~9.4.4"
|
||||
"phpunit/phpunit": "^8.0 || ^9.4"
|
||||
},
|
||||
"suggest": {
|
||||
"ext-relay": "Faster connection with in-memory caching (>=0.6.2)"
|
||||
|
||||
@@ -258,7 +258,7 @@ class RedisCluster implements ClusterInterface, IteratorAggregate, Countable
|
||||
}
|
||||
|
||||
usleep($retryAfter * 1000);
|
||||
$retryAfter = $retryAfter * 2;
|
||||
$retryAfter *= 2;
|
||||
++$retries;
|
||||
}
|
||||
}
|
||||
@@ -541,7 +541,7 @@ class RedisCluster implements ClusterInterface, IteratorAggregate, Countable
|
||||
break;
|
||||
} catch (Throwable $exception) {
|
||||
usleep($retryAfter * 1000);
|
||||
$retryAfter = $retryAfter * 2;
|
||||
$retryAfter *= 2;
|
||||
|
||||
if ($exception instanceof ConnectionException) {
|
||||
$connection = $exception->getConnection();
|
||||
|
||||
Reference in New Issue
Block a user