Skip to content

Commit 21968a1

Browse files
authored
[10.x] Support for phpredis 6.0.0 (#48364)
* Support for phpredis 6.0.0, fix for OPT_SLAVE_FAILOVER * PHPSTAN: Remove ignored error "Access to undefined constant"
1 parent 45423d1 commit 21968a1

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

phpstan.src.neon.dist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ parameters:
44
level: 0
55
ignoreErrors:
66
- "#\\(void\\) is used#"
7-
- "#Access to undefined constant#"
87
- "#Access to an undefined property#"
98
- "#Call to an undefined method#"
109
- "#but return statement is missing.#"

src/Illuminate/Redis/Connectors/PhpRedisConnector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ protected function createRedisClusterInstance(array $servers, array $options)
196196
}
197197

198198
if (! empty($options['failover'])) {
199-
$client->setOption(Redis::OPT_SLAVE_FAILOVER, $options['failover']);
199+
$client->setOption(RedisCluster::OPT_SLAVE_FAILOVER, $options['failover']);
200200
}
201201

202202
if (! empty($options['name'])) {

0 commit comments

Comments
 (0)