diff --git a/src/Redis.php b/src/Redis.php index 4226975..8e5a778 100644 --- a/src/Redis.php +++ b/src/Redis.php @@ -4548,7 +4548,7 @@ public function time() * @example *
      * $iterator = null;
-     * while($keys = $redis->scan($iterator)) {
+     * while(false !== ($keys = $redis->scan($iterator))) {
      *     foreach($keys as $key) {
      *         echo $key . PHP_EOL;
      *     }