Skip to content

Commit 286eabc

Browse files
Merge branch '3.4' into 4.3
* 3.4: Various tweaks 3.4 [PhpUnit] Fix usleep mock return value [Lock] use Predis\ClientInterface instead of Predis\Client
2 parents 2dfd2c3 + ec2a74a commit 286eabc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Session/Storage/Handler/RedisSessionHandler.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ class RedisSessionHandler extends AbstractSessionHandler
3434
* List of available options:
3535
* * prefix: The prefix to use for the keys in order to avoid collision on the Redis server.
3636
*
37-
* @param \Redis|\RedisArray|\RedisCluster|\Predis\Client|RedisProxy $redis
38-
* @param array $options An associative array of options
37+
* @param \Redis|\RedisArray|\RedisCluster|\Predis\ClientInterface|RedisProxy $redis
38+
* @param array $options An associative array of options
3939
*
4040
* @throws \InvalidArgumentException When unsupported client or options are passed
4141
*/
@@ -45,11 +45,11 @@ public function __construct($redis, array $options = [])
4545
!$redis instanceof \Redis &&
4646
!$redis instanceof \RedisArray &&
4747
!$redis instanceof \RedisCluster &&
48-
!$redis instanceof \Predis\Client &&
48+
!$redis instanceof \Predis\ClientInterface &&
4949
!$redis instanceof RedisProxy &&
5050
!$redis instanceof RedisClusterProxy
5151
) {
52-
throw new \InvalidArgumentException(sprintf('%s() expects parameter 1 to be Redis, RedisArray, RedisCluster or Predis\Client, %s given', __METHOD__, \is_object($redis) ? \get_class($redis) : \gettype($redis)));
52+
throw new \InvalidArgumentException(sprintf('%s() expects parameter 1 to be Redis, RedisArray, RedisCluster or Predis\ClientInterface, %s given', __METHOD__, \is_object($redis) ? \get_class($redis) : \gettype($redis)));
5353
}
5454

5555
if ($diff = array_diff(array_keys($options), ['prefix'])) {

0 commit comments

Comments
 (0)