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:
commit
9c635615de
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user