bug #33936 [HttpClient] Missing argument in method_exists (detinkin)

This PR was merged into the 4.3 branch.

Discussion
----------

[HttpClient] Missing argument in method_exists

| Q             | A
| ------------- | ---
| Branch?       | 4.3
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       |
| License       | MIT
| Doc PR        |

Commits
-------

d2a8e94c79 Missing argument in method_exists
This commit is contained in:
Nicolas Grekas 2019-10-10 10:42:52 +02:00
commit 9c635615de

View File

@ -196,7 +196,7 @@ trait HttpClientTrait
$normalizedHeaders = [];
foreach ($headers as $name => $values) {
if (\is_object($values) && method_exists('__toString')) {
if (\is_object($values) && method_exists($values, '__toString')) {
$values = (string) $values;
}