File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 18
18
],
19
19
"require" : {
20
20
"php" : " ^7.0 || ^8.0" ,
21
- "ocramius/package-versions " : " ^1.4 " ,
21
+ "composer-runtime-api " : " ^2.1 " ,
22
22
"psr/http-client" : " ^1.0" ,
23
23
"psr/http-factory" : " ^1.0" ,
24
24
"psr/http-message" : " ^1.0"
Original file line number Diff line number Diff line change 9
9
use InvalidArgumentException ;
10
10
use Nyholm \Psr7 \Factory \Psr17Factory ;
11
11
use Nyholm \Psr7 \Uri ;
12
- use PackageVersions \Versions ;
13
12
use Psr \Http \Client \ClientInterface ;
14
13
use Psr \Http \Message \RequestFactoryInterface ;
15
14
use Psr \Http \Message \RequestInterface ;
@@ -48,7 +47,7 @@ public function __construct(
48
47
$ this ->streamFactory = $ streamFactory ;
49
48
$ this ->apiKey = $ config ["apiKey " ];
50
49
$ this ->rootUrl = $ config ["rootUrl " ] ?? "https://api.journy.io " ;
51
- $ this ->version = explode ( " @ " , Versions ::getVersion ('journy-io/sdk ' ))[ 0 ] ;
50
+ $ this ->version = \ Composer \InstalledVersions ::getVersion ('journy-io/sdk ' );
52
51
}
53
52
54
53
public static function withDefaults (string $ apiKey ): Client
You can’t perform that action at this time.
0 commit comments