8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01640e8 commit 3d2ed70Copy full SHA for 3d2ed70
src/Symfony/Component/HttpClient/Response/HttplugPromise.php
@@ -11,7 +11,7 @@
11
12
namespace Symfony\Component\HttpClient\Response;
13
14
-use function GuzzleHttp\Promise\promise_for;
+use GuzzleHttp\Promise\Create;
15
use GuzzleHttp\Promise\PromiseInterface as GuzzlePromiseInterface;
16
use Http\Promise\Promise as HttplugPromiseInterface;
17
use Psr\Http\Message\ResponseInterface as Psr7ResponseInterface;
@@ -74,7 +74,7 @@ private function wrapThenCallback(?callable $callback): ?callable
74
}
75
76
return static function ($value) use ($callback) {
77
- return promise_for($callback($value));
+ return Create::promiseFor($callback($value));
78
};
79
80
0 commit comments