Skip to content

Commit 9f7be73

Browse files
committed
fix psalm error
1 parent cc79e0a commit 9f7be73

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎tests/system/HTTP/StreamResponseTest.php‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,9 @@ public function testStreamFactoryReturnsStreamResponse(): void
107107

108108
public function testStreamFactoryAcceptsIterable(): void
109109
{
110-
$response = (new Response())->stream(['a', 'b']);
110+
/** @var iterable<string> $chunks */
111+
$chunks = ['a', 'b'];
112+
$response = (new Response())->stream($chunks);
111113

112114
$this->assertInstanceOf(StreamResponse::class, $response);
113115
}

0 commit comments

Comments
 (0)