Skip to content

Commit eb6bbfa

Browse files
authored
Non-nullable sends cannot be iterated over. (#444)
1 parent b85e5e1 commit eb6bbfa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Psl/Async/Awaitable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function __construct(State $state)
4949
*
5050
* @param iterable<Tk, Awaitable<Tv>> $awaitables
5151
*
52-
* @return Generator<Tk, Awaitable<Tv>, void, void>
52+
* @return Generator<Tk, Awaitable<Tv>, null, void>
5353
*/
5454
public static function iterate(iterable $awaitables): Generator
5555
{

src/Psl/Shell/stream_unpack.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
*
1818
* @throws Exception\InvalidArgumentException If $content is invalid.
1919
*
20-
* @return Generator<1|2, string, void, void> Generator where the key is either 1 ( representing the standard output ),
20+
* @return Generator<1|2, string, null, void> Generator where the key is either 1 ( representing the standard output ),
2121
* or 2 ( representing the standard error output ), and the value is the output chunk.
2222
*
2323
* Example:

0 commit comments

Comments
 (0)