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 6a4ab5f commit f1b0537Copy full SHA for f1b0537
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