Skip to content

Commit

Permalink
Removed deprecated Http\Discovery\HttpClientDiscovery
Browse files Browse the repository at this point in the history
  • Loading branch information
stanislav-janu committed Oct 4, 2023
1 parent ee16f19 commit a8c71b2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@
},
"require-dev": {
"stanislav-janu/phpstan": "^1.0",
"phpunit/phpunit": "^10.1",
"phpunit/phpunit": "^10.3",
"rector/rector": "^0.18",
"jetbrains/phpstorm-attributes": "^1.0",
"guzzlehttp/guzzle": "^7.5.1",
"guzzlehttp/guzzle": "^7.8",
"php-http/guzzle7-adapter": "^1.0",
"symfony/deprecation-contracts": "^2.5"
},
Expand Down
4 changes: 2 additions & 2 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@

namespace JanuSoftware\Facebook;

use Http\Discovery\HttpClientDiscovery;
use Http\Discovery\Psr17FactoryDiscovery;
use Http\Discovery\Psr18ClientDiscovery;
use JanuSoftware\Facebook\Exception\SDKException;
use Psr\Http\Client\ClientInterface;
use Psr\Http\Message\StreamInterface;
Expand Down Expand Up @@ -79,7 +79,7 @@ public function __construct(
ClientInterface $httpClient = null,
protected bool $enableBetaMode = false,
) {
$this->httpClient = $httpClient ?? HttpClientDiscovery::find();
$this->httpClient = $httpClient ?? Psr18ClientDiscovery::find();
}


Expand Down

0 comments on commit a8c71b2

Please sign in to comment.