Skip to content

Commit b25f391

Browse files
authored
Fix PhpStan warning (#565)
1 parent 6ddc641 commit b25f391

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

includes/object-cache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1158,7 +1158,7 @@ public function fetch_info() {
11581158

11591159
$info = $this->redis->info();
11601160

1161-
if ( isset( $node ) ) {
1161+
if ( isset( $connection, $node ) ) {
11621162
$connection->switchTo($node);
11631163
}
11641164
}

0 commit comments

Comments
 (0)