Skip to content

Commit 3ff9318

Browse files
committed
fix: wrong response class returned by response factory
1 parent 4533762 commit 3ff9318

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ResponseFactory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function withContext(array $context): void
3434
$this->context = $context;
3535
}
3636

37-
public function create(object $response): Response
37+
public function create(object $response): IlluminateResponse
3838
{
3939
$content = $this->serializer->normalize(
4040
data: $response,
@@ -47,7 +47,7 @@ public function create(object $response): Response
4747
);
4848
}
4949

50-
public function fromArray(array $response): Response
50+
public function fromArray(array $response): IlluminateResponse
5151
{
5252
$content = $this->serializer->normalize(
5353
data: $response,

0 commit comments

Comments
 (0)