Skip to content

Commit

Permalink
refactor: allow PSR 17 response factory in client
Browse files Browse the repository at this point in the history
  • Loading branch information
JaZo committed Feb 23, 2024
1 parent 8d036cb commit 240cfde
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Swis\Http\Fixture;

use Http\Message\ResponseFactory;
use Http\Mock\Client as MockClient;
use Psr\Http\Message\RequestInterface;
use Psr\Http\Message\ResponseInterface;
Expand All @@ -15,10 +14,10 @@ class Client extends MockClient
protected $fixtureResponseBuilder;

/**
* @param \Swis\Http\Fixture\ResponseBuilderInterface $fixtureResponseBuilder
* @param \Http\Message\ResponseFactory|null $responseFactory
* @param \Swis\Http\Fixture\ResponseBuilderInterface $fixtureResponseBuilder
* @param \Http\Message\ResponseFactory|\Psr\Http\Message\ResponseFactoryInterface|null $responseFactory
*/
public function __construct(ResponseBuilderInterface $fixtureResponseBuilder, ?ResponseFactory $responseFactory = null)
public function __construct(ResponseBuilderInterface $fixtureResponseBuilder, $responseFactory = null)
{
parent::__construct($responseFactory);

Expand Down

0 comments on commit 240cfde

Please sign in to comment.