Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6a4ab5f

Browse filesBrowse files
Merge branch '4.4' into 5.3
* 4.4: [HttpClient] Remove deprecated usage of `GuzzleHttp\Promise\queue` [PropertyAccess] Fix handling of uninitialized property of anonymous class [DependencyInjection] fix test ResolveBindingsPass remove loading of class iterable [FrameworkBundle] Avoid calling rtrim(null, '/') in AssetsInstallCommand [DependencyInjection] Fix nested env var with resolve processor Allow OutputFormatter::escape() to be used for escaping URLs used in <href> allow a zero time-limit [DependencyInjection] Ignore argument type check in CheckTypeDeclarationsPass if it's a Definition with a factory [Validators] Add translations for Slovak #43735
2 parents 6799916 + c4e28fc commit 6a4ab5f
Copy full SHA for 6a4ab5f

File tree

2 files changed

+3
-2
lines changed
Filter options

2 files changed

+3
-2
lines changed

‎HttplugClient.php

Copy file name to clipboardExpand all lines: HttplugClient.php
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
use GuzzleHttp\Promise\Promise as GuzzlePromise;
1515
use GuzzleHttp\Promise\RejectedPromise;
16+
use GuzzleHttp\Promise\Utils;
1617
use Http\Client\Exception\NetworkException;
1718
use Http\Client\Exception\RequestException;
1819
use Http\Client\HttpAsyncClient;
@@ -69,7 +70,7 @@ public function __construct(HttpClientInterface $client = null, ResponseFactoryI
6970
$this->client = $client ?? HttpClient::create();
7071
$this->responseFactory = $responseFactory;
7172
$this->streamFactory = $streamFactory ?? ($responseFactory instanceof StreamFactoryInterface ? $responseFactory : null);
72-
$this->promisePool = \function_exists('GuzzleHttp\Promise\queue') ? new \SplObjectStorage() : null;
73+
$this->promisePool = class_exists(Utils::class) ? new \SplObjectStorage() : null;
7374

7475
if (null === $this->responseFactory || null === $this->streamFactory) {
7576
if (!class_exists(Psr17Factory::class) && !class_exists(Psr17FactoryDiscovery::class)) {

‎Internal/HttplugWaitLoop.php

Copy file name to clipboardExpand all lines: Internal/HttplugWaitLoop.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function wait(?ResponseInterface $pendingResponse, float $maxDuration = n
4747
return 0;
4848
}
4949

50-
$guzzleQueue = \GuzzleHttp\Promise\queue();
50+
$guzzleQueue = \GuzzleHttp\Promise\Utils::queue();
5151

5252
if (0.0 === $remainingDuration = $maxDuration) {
5353
$idleTimeout = 0.0;

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.