Skip to content

Commit 180cbd1

Browse files
authored
Merge pull request ukko#63 from natsimhan/fix-scan-example
Fixed in the example the use of SCAN function
2 parents 324ae44 + 6e9f6d8 commit 180cbd1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Redis.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4548,7 +4548,7 @@ public function time()
45484548
* @example
45494549
* <pre>
45504550
* $iterator = null;
4551-
* while($keys = $redis->scan($iterator)) {
4551+
* while(false !== ($keys = $redis->scan($iterator))) {
45524552
* foreach($keys as $key) {
45534553
* echo $key . PHP_EOL;
45544554
* }

0 commit comments

Comments
 (0)