Skip to content

Commit 88d0557

Browse files
authored
Merge pull request #136 from GrahamCampbell/patch-1
Fix #135
2 parents 19a3ce4 + 661d8c9 commit 88d0557

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

composer.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"php": ">=7.1||>=8.0",
77
"ext-json": "*",
88
"ext-openssl": "*",
9-
"guzzlehttp/guzzle": "^6.0|^7.0"
9+
"guzzlehttp/guzzle": "^6.0|^7.0",
10+
"guzzlehttp/psr7": "^1.7|^2.0"
1011
},
1112
"require-dev": {
1213
"ext-simplexml": "*",

src/Signature/EncodesUrl.php

+1-7
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
use GuzzleHttp\Psr7;
66
use GuzzleHttp\Psr7\Uri;
7-
use function GuzzleHttp\Psr7\uri_for;
87
use Psr\Http\Message\UriInterface;
98

109
trait EncodesUrl
@@ -18,12 +17,7 @@ trait EncodesUrl
1817
*/
1918
protected function createUrl($uri)
2019
{
21-
if (method_exists(Psr7\Utils::class, 'uriFor')) {
22-
return Psr7\Utils::uriFor($uri);
23-
}
24-
25-
// Deprecated, removed in Guzzle 7.2
26-
return Psr7\uri_for($uri);
20+
return Psr7\Utils::uriFor($uri);
2721
}
2822

2923
/**

0 commit comments

Comments
 (0)