From 60e89756e97c3f1384cb401af7b7428536180117 Mon Sep 17 00:00:00 2001 From: sebprt Date: Wed, 22 Nov 2023 14:50:16 +0100 Subject: [PATCH] Added rule to ignore while(true) statement --- src/Loader.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Loader.php b/src/Loader.php index 812d78e..96ad506 100644 --- a/src/Loader.php +++ b/src/Loader.php @@ -74,7 +74,8 @@ public function load(): \Generator { $line = new EmptyResultBucket(); - while ($line) { + /* @phpstan-ignore-next-line */ + while (true) { $this->channel->publish( json_encode($line, \JSON_THROW_ON_ERROR), [