Skip to content

Commit

Permalink
Support swow psr7-plus interface for all components. (#5839)
Browse files Browse the repository at this point in the history
  • Loading branch information
limingxinleo authored Jun 16, 2023
1 parent 5cb9011 commit 6f807cf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Http/TestResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
use LogicException;
use PHPUnit\Framework\Assert as PHPUnit;
use Psr\Http\Message\ResponseInterface;
use Swow\Psr7\Message\ResponsePlusInterface;
use Symfony\Component\HttpFoundation\StreamedResponse;
use Throwable;

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

public static function fromBaseResponse(ResponseInterface $response)
public static function fromBaseResponse(ResponsePlusInterface $response)
{
return new static(new Response($response));
}
Expand Down

0 comments on commit 6f807cf

Please sign in to comment.