Skip to content

Commit

Permalink
chore: Replace php-http/message-factory to psr/http-factory
Browse files Browse the repository at this point in the history
  • Loading branch information
Fábio Galvão committed Apr 15, 2024
1 parent 7fbdd81 commit ba811b5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/Common/Http/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
use Omnipay\Common\Http\Exception\NetworkException;
use Omnipay\Common\Http\Exception\RequestException;
use Psr\Http\Message\RequestInterface;
use Psr\Http\Message\RequestFactoryInterface;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\StreamInterface;
use Psr\Http\Message\UriInterface;
Expand All @@ -24,11 +25,11 @@ class Client implements ClientInterface
private $httpClient;

/**
* @var RequestInterface
* @var RequestFactoryInterface
*/
private $requestFactory;

public function __construct($httpClient = null, RequestInterface $requestFactory = null)
public function __construct($httpClient = null, RequestFactoryInterface $requestFactory = null)
{
$this->httpClient = $httpClient ?: HttpClientDiscovery::find();
$this->requestFactory = $requestFactory ?: MessageFactoryDiscovery::find();
Expand Down
2 changes: 1 addition & 1 deletion tests/Common/Http/ClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Mockery as m;
use GuzzleHttp\Psr7\Request;
use Http\Client\HttpClient;
use Psr\Http\Message\RequestInterface as RequestFactory;
use Psr\Http\Message\RequestFactoryInterface as RequestFactory;
use Omnipay\Common\Http\Exception\RequestException;
use Omnipay\Tests\TestCase;

Expand Down

0 comments on commit ba811b5

Please sign in to comment.