Skip to content

Commit 097de0c

Browse files
Use Psr17FactoryDiscovery::findUriFactory
1 parent 61dd444 commit 097de0c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"ext-json": "*",
1515
"php-http/client-common": "^2.3",
1616
"php-http/cache-plugin": "^1.7",
17-
"php-http/discovery": "^1.9",
17+
"php-http/discovery": "^1.12",
1818
"php-http/httplug": "^2.1",
1919
"php-http/multipart-stream-builder": "^1.1",
2020
"psr/cache": "^1.0",

src/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ public function authenticate(string $method, string $token, string $password = n
221221
public function setUrl(string $url): void
222222
{
223223
$this->httpClientBuilder->removePlugin(AddHostPlugin::class);
224-
$this->httpClientBuilder->addPlugin(new AddHostPlugin(Psr17FactoryDiscovery::findUrlFactory()->createUri($url)));
224+
$this->httpClientBuilder->addPlugin(new AddHostPlugin(Psr17FactoryDiscovery::findUriFactory()->createUri($url)));
225225
}
226226

227227
/**

0 commit comments

Comments
 (0)