Skip to content

Commit f0120a8

Browse files
committed
Update RedisCluster.php
1 parent 2b4bf2d commit f0120a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Dashboards/Redis/Compatibility/Cluster/RedisCluster.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public function getInfo(?string $option = null, ?array $combine = null): array {
9191
}
9292

9393
$section_info = [];
94-
$sections = ['SERVER', 'CLIENTS', 'MEMORY', 'PERSISTENCE', 'STATS', 'REPLICATION', 'CPU', 'CLUSTER', 'KEYSPACE',];
94+
$sections = ['SERVER', 'CLIENTS', 'MEMORY', 'PERSISTENCE', 'STATS', 'REPLICATION', 'CPU', 'CLUSTER', 'KEYSPACE'];
9595

9696
foreach ($sections as $section_name) {
9797
$aggregated_values = [];
@@ -127,7 +127,7 @@ public function getInfo(?string $option = null, ?array $combine = null): array {
127127
foreach ($aggregated_values as $key => $values) {
128128
if (is_array(reset($values))) {
129129
foreach ($values as $sub_key => $sub_values) {
130-
$combined_section[$key][$sub_key] = $this->combineValues($sub_key, $sub_values, $combine);
130+
$combined_section[$key][$sub_key] = $this->combineValues((string) $sub_key, $sub_values, $combine);
131131
}
132132
} else {
133133
$combined_section[$key] = $this->combineValues($key, $values, $combine);

0 commit comments

Comments
 (0)