File tree Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 16
16
"guzzlehttp/guzzle" : " ^6.4 || ^7.0" ,
17
17
"psr/http-client" : " ^1.0" ,
18
18
"psr/http-message" : " ^1.0" ,
19
- "psr/log" : " ^1.1" ,
20
- "guzzlehttp/psr7" : " ^1.7" ,
19
+ "guzzlehttp/psr7" : " ^2.0" ,
21
20
"ext-openssl" : " *"
22
21
},
23
22
"autoload" : {
32
31
"brainmaestro/composer-git-hooks" : " ^2.8" ,
33
32
"phpstan/phpstan-strict-rules" : " ^0.12.1" ,
34
33
"phpstan/extension-installer" : " ^1.0" ,
34
+ "psr/log" : " ^1.1" ,
35
35
"symfony/phpunit-bridge" : " ^5.1"
36
36
},
37
37
"autoload-dev" : {
58
58
},
59
59
"extra" : {
60
60
"hooks" : {
61
- "pre-commit" : " composer test && composer lint"
61
+ "pre-commit" : " composer test && composer lint"
62
+ }
63
+ },
64
+ "config" : {
65
+ "allow-plugins" : {
66
+ "phpstan/extension-installer" : true
62
67
}
63
68
}
64
- }
69
+ }
Original file line number Diff line number Diff line change 5
5
namespace Yoti \Http ;
6
6
7
7
use GuzzleHttp \Psr7 \Request as RequestMessage ;
8
+ use GuzzleHttp \Psr7 \Utils ;
8
9
use Psr \Http \Client \ClientInterface ;
9
10
use Psr \Http \Message \StreamInterface ;
10
11
use Yoti \Util \Config ;
11
12
use Yoti \Util \PemFile ;
12
13
13
- use function GuzzleHttp \Psr7 \uri_for ;
14
-
15
14
class RequestBuilder
16
15
{
17
16
/** Digest HTTP header key. */
@@ -380,7 +379,7 @@ public function build(): Request
380
379
381
380
$ message = new RequestMessage (
382
381
$ this ->method ,
383
- uri_for ($ url ),
382
+ Utils:: uriFor ($ url ),
384
383
$ this ->getHeaders (),
385
384
$ this ->getBodyByTypeOfRequest ()
386
385
);
You can’t perform that action at this time.
0 commit comments