Skip to content

Commit 19aa6dc

Browse files
committed
minor #13737 [HttpFoundation] Fix getHost and getPort functions in docblock (jwpage)
This PR was submitted for the master branch but it was merged into the 2.3 branch instead (closes #13737). Discussion ---------- [HttpFoundation] Fix getHost and getPort functions in docblock This fixes the incorrect references to the functions `getClientHost` and `getClientPort` in the docblock for Request::setTrustedHeaderName. | Q | A | ------------- | --- | Fixed tickets | none | License | MIT Commits ------- 1ae9f9c [HttpFoundation] Fix getHost and getPort functions in docblock
2 parents e759bc3 + 1ae9f9c commit 19aa6dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/HttpFoundation/Request.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -575,8 +575,8 @@ public static function getTrustedHosts()
575575
* The following header keys are supported:
576576
*
577577
* * Request::HEADER_CLIENT_IP: defaults to X-Forwarded-For (see getClientIp())
578-
* * Request::HEADER_CLIENT_HOST: defaults to X-Forwarded-Host (see getClientHost())
579-
* * Request::HEADER_CLIENT_PORT: defaults to X-Forwarded-Port (see getClientPort())
578+
* * Request::HEADER_CLIENT_HOST: defaults to X-Forwarded-Host (see getHost())
579+
* * Request::HEADER_CLIENT_PORT: defaults to X-Forwarded-Port (see getPort())
580580
* * Request::HEADER_CLIENT_PROTO: defaults to X-Forwarded-Proto (see getScheme() and isSecure())
581581
*
582582
* Setting an empty value allows to disable the trusted header for the given key.

0 commit comments

Comments
 (0)