Skip to content

Commit

Permalink
Use (string) $body instead of $body->getContents() for getting co…
Browse files Browse the repository at this point in the history
…ntents from StreamInterface. (#2871)

because method `getContents()` only returns the remaining contents in a string.
  • Loading branch information
limingxinleo authored Nov 25, 2020
1 parent c1fb3d9 commit d7715fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/RenderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public function testRender()
<body>
Hello, Hyperf. You are using smarty template now.
</body>
</html>', $response->getBody()->getContents());
</html>', (string) $response->getBody());
}
}

Expand Down

0 comments on commit d7715fb

Please sign in to comment.