@@ -9,37 +9,37 @@ interface LoopInterface
99 /**
1010 * Register a listener to be notified when a stream is ready to read.
1111 *
12- * @param stream $stream The PHP stream resource to check.
12+ * @param resource $stream The PHP stream resource to check.
1313 * @param callable $listener Invoked when the stream is ready.
1414 */
1515 public function addReadStream ($ stream , callable $ listener );
1616
1717 /**
1818 * Register a listener to be notified when a stream is ready to write.
1919 *
20- * @param stream $stream The PHP stream resource to check.
20+ * @param resource $stream The PHP stream resource to check.
2121 * @param callable $listener Invoked when the stream is ready.
2222 */
2323 public function addWriteStream ($ stream , callable $ listener );
2424
2525 /**
2626 * Remove the read event listener for the given stream.
2727 *
28- * @param stream $stream The PHP stream resource.
28+ * @param resource $stream The PHP stream resource.
2929 */
3030 public function removeReadStream ($ stream );
3131
3232 /**
3333 * Remove the write event listener for the given stream.
3434 *
35- * @param stream $stream The PHP stream resource.
35+ * @param resource $stream The PHP stream resource.
3636 */
3737 public function removeWriteStream ($ stream );
3838
3939 /**
4040 * Remove all listeners for the given stream.
4141 *
42- * @param stream $stream The PHP stream resource.
42+ * @param resource $stream The PHP stream resource.
4343 */
4444 public function removeStream ($ stream );
4545
@@ -49,8 +49,8 @@ public function removeStream($stream);
4949 * The execution order of timers scheduled to execute at the same time is
5050 * not guaranteed.
5151 *
52- * @param numeric $interval The number of seconds to wait before execution.
53- * @param callable $callback The callback to invoke.
52+ * @param int|float $interval The number of seconds to wait before execution.
53+ * @param callable $callback The callback to invoke.
5454 *
5555 * @return TimerInterface
5656 */
@@ -62,8 +62,8 @@ public function addTimer($interval, callable $callback);
6262 * The execution order of timers scheduled to execute at the same time is
6363 * not guaranteed.
6464 *
65- * @param numeric $interval The number of seconds to wait before execution.
66- * @param callable $callback The callback to invoke.
65+ * @param int|float $interval The number of seconds to wait before execution.
66+ * @param callable $callback The callback to invoke.
6767 *
6868 * @return TimerInterface
6969 */
0 commit comments