Skip to content

Commit 6f807cf

Browse files
authored
Support swow psr7-plus interface for all components. (#5839)
1 parent 5cb9011 commit 6f807cf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Http/TestResponse.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
use LogicException;
2525
use PHPUnit\Framework\Assert as PHPUnit;
2626
use Psr\Http\Message\ResponseInterface;
27+
use Swow\Psr7\Message\ResponsePlusInterface;
2728
use Symfony\Component\HttpFoundation\StreamedResponse;
2829
use Throwable;
2930

@@ -597,7 +598,7 @@ public function offsetUnset(mixed $offset): void
597598
throw new LogicException('Response data may not be mutated using array access.');
598599
}
599600

600-
public static function fromBaseResponse(ResponseInterface $response)
601+
public static function fromBaseResponse(ResponsePlusInterface $response)
601602
{
602603
return new static(new Response($response));
603604
}

0 commit comments

Comments
 (0)