Skip to content

Commit

Permalink
Bump dev dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
axlon committed Mar 11, 2024
1 parent 22a24b1 commit 76de04a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
10 changes: 5 additions & 5 deletions bin/build
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
<?php

use GuzzleHttp\Client;
use GuzzleHttp\Promise\Utils as PromiseUtils;
use GuzzleHttp\Utils;
use Psr\Http\Message\ResponseInterface;
use Symfony\Component\VarExporter\VarExporter;
use function GuzzleHttp\json_decode;
use function GuzzleHttp\Promise\all;

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

Expand All @@ -14,11 +14,11 @@ $httpQueue = [];
$responses = [];

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

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

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

if (($i !== 0 && $i % 10 === 0) || $i + 1 === count($countries)) {
$responses = array_merge($responses, all($httpQueue)->wait());
$responses = array_merge($responses, PromiseUtils::all($httpQueue)->wait());
$httpQueue = [];
usleep(500000);
}
Expand Down
7 changes: 3 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,9 @@
"illuminate/validation": "^5.5 || ^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0"
},
"require-dev": {
"guzzlehttp/guzzle": "^6.5 || ^7.0.1",
"mockery/mockery": "^1.3",
"phpunit/phpunit": "^8.5 || ^9.0 || ^10.0",
"symfony/var-exporter": "^4.0"
"guzzlehttp/guzzle": "^7.8",
"phpunit/phpunit": "^8.5 || ^9.6 || ^10.5",
"symfony/var-exporter": "^4.0 || ^5.0 || ^6.0 || ^7.0"
},
"autoload": {
"psr-4": {
Expand Down

0 comments on commit 76de04a

Please sign in to comment.