Skip to content

Commit e128d76

Browse files
minor #58992 [HttpClient] fix amphp/http-client 5 support (xabbuh)
This PR was merged into the 7.2 branch. Discussion ---------- [HttpClient] fix amphp/http-client 5 support | Q | A | ------------- | --- | Branch? | 7.2 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | following #58969 | License | MIT Commits ------- 06e56f8 fix amphp/http-client 5 support
2 parents 938330e + 06e56f8 commit e128d76

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,8 @@ public function __construct(
9999
$onProgress = $options['on_progress'] ?? static function () {};
100100
$onProgress = $this->onProgress = static function () use (&$info, $onProgress, $resolve) {
101101
$info['total_time'] = microtime(true) - $info['start_time'];
102-
$onProgress((int) $info['size_download'], ((int) (1 + $info['download_content_length']) ?: 1) - 1, (array) $info, $resolve);
102+
$info['resolve'] = $resolve;
103+
$onProgress((int) $info['size_download'], ((int) (1 + $info['download_content_length']) ?: 1) - 1, (array) $info);
103104
};
104105

105106
$pause = 0.0;

0 commit comments

Comments
 (0)