Missing argument in method_exists

This commit is contained in:
detinkin 2019-10-09 20:18:55 +03:00 committed by Nicolas Grekas
parent 76f44df8ff
commit d2a8e94c79

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;
}