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
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
8000 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