Skip to content

Commit 8c4142c

Browse files
authored
Bump unused package versions (#354)
* Bump unused package versions * Pulled out composer package versions for what seems like the 3rd time
1 parent aaae3bf commit 8c4142c

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

composer.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
"ext-mbstring": "*",
1818
"laminas/laminas-diactoros": "^2.21",
1919
"lcobucci/jwt": "^3.4|^4.0",
20-
"composer/package-versions-deprecated": "^1.11",
2120
"psr/container": "^1.0 | ^2.0",
2221
"psr/http-client-implementation": "^1.0",
2322
"vonage/nexmo-bridge": "^0.1.0",

src/Client.php

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111

1212
namespace Vonage;
1313

14+
use Composer\InstalledVersions;
1415
use Http\Client\HttpClient;
1516
use InvalidArgumentException;
1617
use Laminas\Diactoros\Request;
1718
use Laminas\Diactoros\Uri;
1819
use Lcobucci\JWT\Token;
19-
use PackageVersions\Versions;
2020
use Psr\Container\ContainerInterface;
2121
use Psr\Http\Client\ClientExceptionInterface;
2222
use Psr\Http\Client\ClientInterface;
@@ -55,12 +55,10 @@
5555
use Vonage\Verify\Verification;
5656
use Vonage\Voice\ClientFactory as VoiceClientFactory;
5757
use Vonage\Logger\{LoggerAwareInterface, LoggerTrait};
58-
use Vonage\Message\Client as MessageClient;
5958

6059
use function array_key_exists;
6160
use function array_merge;
6261
use function call_user_func_array;
63-
use function get_class;
6462
use function http_build_query;
6563
use function implode;
6664
use function is_null;
@@ -129,12 +127,12 @@ class Client implements LoggerAwareInterface
129127
* @var array
130128
*/
131129
protected $options = ['show_deprecations' => false, 'debug' => false];
132-
130+
133131
/**
134132
* @string
135133
*/
136134
public $apiUrl;
137-
135+
138136
/**
139137
* @string
140138
*/
@@ -148,7 +146,7 @@ public function __construct(CredentialsInterface $credentials, $options = [], ?C
148146
if (is_null($client)) {
149147
// Since the user did not pass a client, try and make a client
150148
// using the Guzzle 6 adapter or Guzzle 7 (depending on availability)
151-
list($guzzleVersion) = explode('@', Versions::getVersion('guzzlehttp/guzzle'), 1);
149+
list($guzzleVersion) = explode('@', InstalledVersions::getVersion('guzzlehttp/guzzle'), 1);
152150
$guzzleVersion = (float) $guzzleVersion;
153151

154152
if ($guzzleVersion >= 6.0 && $guzzleVersion < 7) {
@@ -206,8 +204,6 @@ public function __construct(CredentialsInterface $credentials, $options = [], ?C
206204
$this->setFactory(
207205
new MapFactory(
208206
[
209-
// Legacy namespace (used by Laravel, needs to be moved over in future
210-
'message' => MessageClient::class,
211207
// Registered Services by name
212208
'account' => ClientFactory::class,
213209
'applications' => ApplicationClientFactory::class,

0 commit comments

Comments
 (0)