Closed PhantomArt closed 6 months ago
$cancellation is not passed to split(). Apparently, this is not how it should be.
/** * Splits the stream into lines. * * @return \Traversable<int, string> */ function splitLines(ReadableStream $source, ?Cancellation $cancellation = null): \Traversable { foreach (split($source, "\n") as $line) { yield \rtrim($line, "\r"); } }
$cancellation is not passed to split(). Apparently, this is not how it should be.