Skip to content
Snippets Groups Projects
Commit 7a3e2be4 authored by Nikita Hovratov's avatar Nikita Hovratov
Browse files

[TASK] Avoid deprecated usage of GuzzleHttp\Promise settle function

This is a preparation patch for a guzzlehttp/guzzle and
guzzlehttp/promises raise.

Resolves: #100918
Releases: main, 12.4, 11.5
Change-Id: I9a2731ade87de8f54b2e3c0e375dde1609e35e2a
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/79122


Tested-by: default avatarNikita Hovratov <nikita.h@live.de>
Reviewed-by: default avatarNikita Hovratov <nikita.h@live.de>
Tested-by: default avatarcore-ci <typo3@b13.com>
parent 3037bc37
Branches
Tags
No related merge requests found
......@@ -20,9 +20,7 @@ namespace TYPO3\CMS\Install\SystemEnvironment\ServerResponse;
use GuzzleHttp\Client;
use GuzzleHttp\Exception\BadResponseException;
use GuzzleHttp\Exception\TransferException;
use function GuzzleHttp\Promise\settle;
use GuzzleHttp\Promise\Utils;
use Psr\Http\Message\ResponseInterface;
use TYPO3\CMS\Backend\Routing\UriBuilder;
use TYPO3\CMS\Core\Crypto\Random;
......@@ -267,7 +265,7 @@ class ServerResponseCheck implements CheckInterface
foreach ($this->fileDeclarations as $fileDeclaration) {
$promises[] = $client->requestAsync('GET', $fileDeclaration->getUrl());
}
foreach (settle($promises)->wait() as $index => $response) {
foreach (Utils::settle($promises)->wait() as $index => $response) {
$fileDeclaration = $this->fileDeclarations[$index];
if (($response['reason'] ?? null) instanceof BadResponseException) {
$messageQueue->addMessage(
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment