Accept null for microseconds argument in stream_select() (#6879) The deprecation of passing null is thrown otherwise. If the timeout is calculated conditionally before calling strea
Accept null for microseconds argument in stream_select() (#6879) The deprecation of passing null is thrown otherwise. If the timeout is calculated conditionally before calling stream_select(), passing to avoid the deprecation seems unreasonable, example: https://github.com/amphp/amp/blob/7d4bbc6e0b47c6bb39b6cce1a4b5942e0c5125fb/lib/Loop/NativeDriver.php#L286 Also enforce that if $seconds is null, then $microseconds should be null as well. However 0 is still accepted (with deprecation) for backwards compatibility.
show more ...
|