Skip to content

Commit

Permalink
修复测试
Browse files Browse the repository at this point in the history
  • Loading branch information
Yurunsoft committed Jul 14, 2023
1 parent 49cb7b0 commit 0abae5f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
11 changes: 11 additions & 0 deletions dev/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,14 @@ function getRectorConfigCallback(string $path): callable
$containerConfigurator->import(LevelSetList::UP_TO_PHP_74);
};
}

function array_keys_string(array $array): array
{
$keys = [];
foreach ($array as $key => $_)
{
$keys[] = (string) $key;
}

return $keys;
}
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ public function getClientIdByFlag(string $flag): array
public function getClientIdsByFlags(array $flags): array
{
$result = $this->useRedis(fn (RedisHandler $redis) => $redis->hMget($this->key . ':binder', $flags));
foreach ($result as $k => $v)
foreach ($result as $k => $v)
{
$result[$k] = [$v];
}
Expand Down
2 changes: 1 addition & 1 deletion src/Server/ConnectionContext/StoreHandler/Redis.php
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ public function getClientIdByFlag(string $flag): array
public function getClientIdsByFlags(array $flags): array
{
$result = $this->useRedis(fn (RedisHandler $redis) => $redis->hMget($this->key . ':binder', $flags));
foreach ($result as $k => $v)
foreach ($result as $k => $v)
{
$result[$k] = [$v];
}
Expand Down

0 comments on commit 0abae5f

Please sign in to comment.