8000 [HttpClient] Remove deprecated usage of GuzzleHttp\Promise\promise_for · symfony/symfony@3d2ed70 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3d2ed70

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines 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