Skip to content

Commit 0abae5f

Browse files
committed
修复测试
1 parent 49cb7b0 commit 0abae5f

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

dev/bootstrap.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,14 @@ function getRectorConfigCallback(string $path): callable
4141
$containerConfigurator->import(LevelSetList::UP_TO_PHP_74);
4242
};
4343
}
44+
45+
function array_keys_string(array $array): array
46+
{
47+
$keys = [];
48+
foreach ($array as $key => $_)
49+
{
50+
$keys[] = (string) $key;
51+
}
52+
53+
return $keys;
54+
}

src/Components/swoole/src/Server/ConnectionContext/StoreHandler/MemoryTable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ public function getClientIdByFlag(string $flag): array
246246
public function getClientIdsByFlags(array $flags): array
247247
{
248248
$result = $this->useRedis(fn (RedisHandler $redis) => $redis->hMget($this->key . ':binder', $flags));
249-
foreach ($result as $k => $v)
249+
foreach ($result as $k => $v)
250250
{
251251
$result[$k] = [$v];
252252
}

src/Server/ConnectionContext/StoreHandler/Redis.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ public function getClientIdByFlag(string $flag): array
405405
public function getClientIdsByFlags(array $flags): array
406406
{
407407
$result = $this->useRedis(fn (RedisHandler $redis) => $redis->hMget($this->key . ':binder', $flags));
408-
foreach ($result as $k => $v)
408+
foreach ($result as $k => $v)
409409
{
410410
$result[$k] = [$v];
411411
}

0 commit comments

Comments
 (0)