Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Psr\Http\Client\ClientInterface as type #33

Merged
merged 2 commits into from
Aug 14, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading