Skip to content

Commit

Permalink
Added rule to ignore while(true) statement
Browse files Browse the repository at this point in the history
  • Loading branch information
sebprt committed Nov 22, 2023
1 parent bcb3269 commit 60e8975
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -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),
[
Expand Down

0 comments on commit 60e8975

Please sign in to comment.