File tree Expand file tree Collapse file tree 3 files changed +13
-2
lines changed
Components/swoole/src/Server/ConnectionContext/StoreHandler
Server/ConnectionContext/StoreHandler Expand file tree Collapse file tree 3 files changed +13
-2
lines changed Original file line number Diff line number Diff 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+ }
Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments