Skip to content

Commit 8fa2217

Browse files
committed
always pass microseconds to usleep as integers
1 parent 45261e1 commit 8fa2217

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Pipes/WindowsPipes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ public function readAndWrite(bool $blocking, bool $close = false): array
149149
if ($w) {
150150
@stream_select($r, $w, $e, 0, Process::TIMEOUT_PRECISION * 1E6);
151151
} elseif ($this->fileHandles) {
152-
usleep(Process::TIMEOUT_PRECISION * 1E6);
152+
usleep((int) (Process::TIMEOUT_PRECISION * 1E6));
153153
}
154154
}
155155
foreach ($this->fileHandles as $type => $fileHandle) {

0 commit comments

Comments
 (0)