Skip to content

Commit

Permalink
Use Psr\Http\Client\ClientInterface as type (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
holtkamp authored Aug 14, 2023
1 parent 8d48ee7 commit 70a8166
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/JsonApi/Client/JsonApiClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace WoohooLabs\Yang\JsonApi\Client;

use Http\Client\HttpClient;
use Psr\Http\Client\ClientInterface;
use Psr\Http\Message\RequestInterface;
use WoohooLabs\Yang\JsonApi\Response\JsonApiResponse;
use WoohooLabs\Yang\JsonApi\Serializer\DeserializerInterface;
Expand All @@ -13,7 +13,7 @@
class JsonApiClient
{
/**
* @var HttpClient
* @var ClientInterface
*/
private $client;

Expand All @@ -22,7 +22,7 @@ class JsonApiClient
*/
private $deserializer;

public function __construct(HttpClient $client, ?DeserializerInterface $deserializer = null)
public function __construct(ClientInterface $client, ?DeserializerInterface $deserializer = null)
{
$this->client = $client;
$this->deserializer = $deserializer ?? new JsonDeserializer();
Expand Down

0 comments on commit 70a8166

Please sign in to comment.