Skip to content

Commit 3d459fd

Browse files
fix: add json-serializable to TestResponseHelper $body (#1455)
1 parent e7ea095 commit 3d459fd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Tempest/Framework/Testing/Http/TestResponseHelper.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
use Closure;
88
use Generator;
9+
use JsonSerializable;
910
use PHPUnit\Framework\Assert;
1011
use Tempest\Http\Cookie\CookieManager;
1112
use Tempest\Http\Response;
@@ -34,7 +35,7 @@ public function __construct(
3435
get => $this->response->headers;
3536
}
3637

37-
public View|string|array|Generator|null $body {
38+
public View|string|array|Generator|JsonSerializable|null $body {
3839
get => $this->response->body;
3940
}
4041

0 commit comments

Comments
 (0)