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 3d2ed70

Browse filesBrowse files
committed
[HttpClient] Remove deprecated usage of GuzzleHttp\Promise\promise_for
1 parent 01640e8 commit 3d2ed70
Copy full SHA for 3d2ed70

File tree

1 file changed

+2
-2
lines changed
Filter options

1 file changed

+2
-2
lines changed

‎src/Symfony/Component/HttpClient/Response/HttplugPromise.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpClient/Response/HttplugPromise.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
namespace Symfony\Component\HttpClient\Response;
1313

14-
use function GuzzleHttp\Promise\promise_for;
14+
use GuzzleHttp\Promise\Create;
1515
use GuzzleHttp\Promise\PromiseInterface as GuzzlePromiseInterface;
1616
use Http\Promise\Promise as HttplugPromiseInterface;
1717
use Psr\Http\Message\ResponseInterface as Psr7ResponseInterface;
@@ -74,7 +74,7 @@ private function wrapThenCallback(?callable $callback): ?callable
7474
}
7575

7676
return static function ($value) use ($callback) {
77-
return promise_for($callback($value));
77+
return Create::promiseFor($callback($value));
7878
};
7979
}
8080
}

0 commit comments

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