Skip to content

Commit dc9fbe7

Browse files
committed
Ignore new psalm false-positives
1 parent 38bda20 commit dc9fbe7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/EventLoop/Driver/StreamSelectDriver.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,11 +287,13 @@ private function selectStreams(array $read, array $write, float $timeout): void
287287
}
288288

289289
if ($timeout < 0) { // Only signal callbacks are enabled, so sleep indefinitely.
290+
/** @psalm-suppress ArgumentTypeCoercion */
290291
\usleep(\PHP_INT_MAX);
291292
return;
292293
}
293294

294295
if ($timeout > 0) { // Sleep until next timer expires.
296+
/** @psalm-var positive-int $timeout */
295297
\usleep((int) ($timeout * 1_000_000));
296298
}
297299
}

0 commit comments

Comments
 (0)