You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
minor symfony#58969 [HttpClient] Various cleanups after recent changes (nicolas-grekas)
This PR was merged into the 5.4 branch.
Discussion
----------
[HttpClient] Various cleanups after recent changes
| Q | A
| ------------- | ---
| Branch? | 5.4
| Bug fix? | no
| New feature? | no
| Deprecations? | no
| Issues | -
| License | MIT
Recent changes motivated by security issues made me deep dive into the code of HttpClient again.
Here are some cleanups I'd like to do on branch 5.4
Commits
-------
01153f2 [HttpClient] Various cleanups after recent changes
@@ -291,6 +301,9 @@ public static function stream(iterable $responses, ?float $timeout = null, ?stri
291
301
}
292
302
}
293
303
304
+
if (null === $chunk) {
305
+
thrownew \LogicException(\sprintf('"%s" is not compliant with HttpClientInterface: its "stream()" method didn\'t yield any chunks when it should have.', get_debug_type($client)));
306
+
}
294
307
if (null === $chunk->getError() && $chunk->isLast()) {
0 commit comments