8000 [HttpClient] Remove deprecated usage of GuzzleHttp\Promise\promise_for by plozmun · Pull Request #45004 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[HttpClient] Remove deprecated usage of GuzzleHttp\Promise\promise_for #45004

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 13, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Symfony/Component/HttpClient/Response/HttplugPromise.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

namespace Symfony\Component\HttpClient\Response;

use function GuzzleHttp\Promise\promise_for;
use GuzzleHttp\Promise\Create;
use GuzzleHttp\Promise\PromiseInterface as GuzzlePromiseInterface;
use Http\Promise\Promise as HttplugPromiseInterface;
use Psr\Http\Message\ResponseInterface as Psr7ResponseInterface;
Expand Down Expand Up @@ -74,7 +74,7 @@ private function wrapThenCallback(?callable $callback): ?callable
}

return static function ($value) use ($callback) {
return promise_for($callback($value));
return Create::promiseFor($callback($value));
};
}
}
0