Skip to content

Commit 787c50c

Browse files
authored
fix: πŸ› Don't use deprecated factory method (#139)
Since `php-http/discovery:1.11`: php-http/discovery@be351ee βœ… Closes: 138
1 parent 836217b commit 787c50c

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
@@ -30,7 +30,7 @@
3030
"jane-php/open-api-runtime": "~7.1",
3131
"psr/http-client-implementation": "*",
3232
"php-http/client-common": "^1.9 || ^2.0",
33-
"php-http/discovery": "^1.7",
33+
"php-http/discovery": "^1.11",
3434
"php-http/multipart-stream-builder": "^1.1"
3535
},
3636
"require-dev": {

β€Žsrc/ClientFactory.phpβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public static function create(string $token, ClientInterface $httpClient = null)
3232
}
3333

3434
// Decorates the HTTP client with some plugins
35-
$uri = Psr17FactoryDiscovery::findUrlFactory()->createUri('https://slack.com/api');
35+
$uri = Psr17FactoryDiscovery::findUriFactory()->createUri('https://slack.com/api');
3636
$pluginClient = new PluginClient($httpClient, [
3737
new ErrorPlugin(),
3838
new SlackErrorPlugin(),

0 commit comments

Comments
Β (0)