Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9c63561

Browse filesBrowse files
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 ------- d2a8e94 Missing argument in method_exists
2 parents 76f44df + d2a8e94 commit 9c63561
Copy full SHA for 9c63561

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎src/Symfony/Component/HttpClient/HttpClientTrait.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpClient/HttpClientTrait.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ private static function normalizeHeaders(array $headers): array
196196
$normalizedHeaders = [];
197197

198198
foreach ($headers as $name => $values) {
199-
if (\is_object($values) && method_exists('__toString')) {
199+
if (\is_object($values) && method_exists($values, '__toString')) {
200200
$values = (string) $values;
201201
}
202202

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.