Skip to content

Commit 345eaa6

Browse files
committed
fix: Correct generator type hint in testStreamWithEmptyGenerator
1 parent 71a5faf commit 345eaa6

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/ResponseTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -301,9 +301,9 @@ public function testStreamWithDisabledPayload()
301301

302302
public function testStreamWithEmptyGenerator()
303303
{
304-
$generator = (function () {
305-
return;
306-
yield; // make it a generator
304+
/** @var \Generator<int, string, mixed, void> $generator */
305+
$generator = (function (): \Generator {
306+
yield from [];
307307
})();
308308

309309
ob_start();

0 commit comments

Comments
 (0)