Run tests under PHP 8.3 (#1396)

This commit is contained in:
Till Krüss
2023-10-25 10:08:55 -07:00
committed by GitHub
parent a9d18b182c
commit d44f07339a
4 changed files with 8 additions and 3 deletions
+3
View File
@@ -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
+2
View File
@@ -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
View File
@@ -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)"
+2 -2
View File
@@ -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();