Skip to content

Commit 3d35089

Browse files
aLoNeITwangruanqiang
andauthored
fix 修复hscasnEach变量名导致的作用域问题 (#722)
Co-authored-by: wangruanqiang <wangruanqiang@youzhibo.cn>
1 parent 485092b commit 3d35089

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Redis/RedisHandler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -478,9 +478,9 @@ public function hscanEach(string $key, ?string $pattern = null, int $count = 0)
478478
{
479479
if ($result)
480480
{
481-
foreach ($result as $key => $value)
481+
foreach ($result as $field => $value)
482482
{
483-
yield $key => $value;
483+
yield $field => $value;
484484
}
485485
}
486486
}

0 commit comments

Comments
 (0)