Skip to content

Commit 76de04a

Browse files
committed
Bump dev dependencies
1 parent 22a24b1 commit 76de04a

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

bin/build

+5-5
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
<?php
33

44
use GuzzleHttp\Client;
5+
use GuzzleHttp\Promise\Utils as PromiseUtils;
6+
use GuzzleHttp\Utils;
57
use Psr\Http\Message\ResponseInterface;
68
use Symfony\Component\VarExporter\VarExporter;
7-
use function GuzzleHttp\json_decode;
8-
use function GuzzleHttp\Promise\all;
99

1010
require_once __DIR__ . '/../vendor/autoload.php';
1111

@@ -14,11 +14,11 @@ $httpQueue = [];
1414
$responses = [];
1515

1616
$unwrap = function (ResponseInterface $response) {
17-
return json_decode($response->getBody()->getContents());
17+
return Utils::jsonDecode($response->getBody()->getContents());
1818
};
1919

2020
echo "Fetching country list...\r\n";
21-
$countries = explode('~', json_decode(
21+
$countries = explode('~', Utils::jsonDecode(
2222
$httpClient->get('/ssl-address/data')->getBody()->getContents()
2323
)->countries);
2424

@@ -27,7 +27,7 @@ foreach ($countries as $i => $country) {
2727
$httpQueue[] = $httpClient->getAsync("/ssl-address/data/{$country}")->then($unwrap);
2828

2929
if (($i !== 0 && $i % 10 === 0) || $i + 1 === count($countries)) {
30-
$responses = array_merge($responses, all($httpQueue)->wait());
30+
$responses = array_merge($responses, PromiseUtils::all($httpQueue)->wait());
3131
$httpQueue = [];
3232
usleep(500000);
3333
}

composer.json

+3-4
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,9 @@
2424
"illuminate/validation": "^5.5 || ^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0"
2525
},
2626
"require-dev": {
27-
"guzzlehttp/guzzle": "^6.5 || ^7.0.1",
28-
"mockery/mockery": "^1.3",
29-
"phpunit/phpunit": "^8.5 || ^9.0 || ^10.0",
30-
"symfony/var-exporter": "^4.0"
27+
"guzzlehttp/guzzle": "^7.8",
28+
"phpunit/phpunit": "^8.5 || ^9.6 || ^10.5",
29+
"symfony/var-exporter": "^4.0 || ^5.0 || ^6.0 || ^7.0"
3130
},
3231
"autoload": {
3332
"psr-4": {

0 commit comments

Comments
 (0)