@@ -213,6 +213,10 @@ public function run()
213213 $ this ->futureTickQueue ->tick ();
214214
215215 $ hasPendingCallbacks = !$ this ->futureTickQueue ->isEmpty ();
216+ /**
217+ * @link https://github.com/phpstan/phpstan/issues/10566
218+ * @phpstan-ignore-next-line
219+ */
216220 $ wasJustStopped = !$ this ->running ;
217221 $ nothingLeftToDo = !$ this ->readStreams
218222 && !$ this ->writeStreams
@@ -223,12 +227,20 @@ public function run()
223227 // otherwise use UV::RUN_NOWAIT.
224228 // @link http://docs.libuv.org/en/v1.x/loop.html#c.uv_run
225229 $ flags = \UV ::RUN_ONCE ;
230+ /**
231+ * @link https://github.com/phpstan/phpstan/issues/10566
232+ * @phpstan-ignore-next-line
233+ */
226234 if ($ wasJustStopped || $ hasPendingCallbacks ) {
227235 $ flags = \UV ::RUN_NOWAIT ;
228236 } elseif ($ nothingLeftToDo ) {
229237 break ;
230238 }
231239
240+ /**
241+ * @link https://github.com/JetBrains/phpstorm-stubs/pull/1614
242+ * @phpstan-ignore-next-line
243+ */
232244 \uv_run ($ this ->uv , $ flags );
233245 }
234246 }
@@ -261,6 +273,10 @@ private function removeStream($stream)
261273 if (!isset ($ this ->readStreams [(int ) $ stream ])
262274 && !isset ($ this ->writeStreams [(int ) $ stream ])) {
263275 \uv_poll_stop ($ this ->streamEvents [(int ) $ stream ]);
276+ /**
277+ * @link https://github.com/JetBrains/phpstorm-stubs/pull/1615
278+ * @phpstan-ignore-next-line
279+ */
264280 \uv_close ($ this ->streamEvents [(int ) $ stream ]);
265281 unset($ this ->streamEvents [(int ) $ stream ]);
266282 return ;
0 commit comments