8000 minor #39121 [HttpFoundation] Typo on deprecation package name (ander… · symfony/symfony@09a79d3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 09a79d3

Browse files
committed
minor #39121 [HttpFoundation] Typo on deprecation package name (andersonamuller)
This PR was merged into the 5.2 branch. Discussion ---------- [HttpFoundation] Typo on deprecation package name | Q | A | ------------- | --- | Branch? | 5.2 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | | License | MIT | Doc PR | Commits ------- 4c6f4c7 [HttpFoundation] Typo on deprecation package name
2 parents c13d5b5 + 4c6f4c7 commit 09a79d3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Symfony/Component/HttpFoundation/Request.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ public function overrideGlobals()
595595
public static function setTrustedProxies(array $proxies, int $trustedHeaderSet)
596596
{
597597
if (self::HEADER_X_FORWARDED_ALL === $trustedHeaderSet) {
598-
trigger_deprecation('symfony/http-fundation', '5.2', 'The "HEADER_X_FORWARDED_ALL" constant is deprecated, use either "HEADER_X_FORWARDED_FOR | HEADER_X_FORWARDED_HOST | HEADER_X_FORWARDED_PORT | HEADER_X_FORWARDED_PROTO" or "HEADER_X_FORWARDED_AWS_ELB" or "HEADER_X_FORWARDED_TRAEFIK" constants instead.');
598+
trigger_deprecation('symfony/http-foundation', '5.2', 'The "HEADER_X_FORWARDED_ALL" constant is deprecated, use either "HEADER_X_FORWARDED_FOR | HEADER_X_FORWARDED_HOST | HEADER_X_FORWARDED_PORT | HEADER_X_FORWARDED_PROTO" or "HEADER_X_FORWARDED_AWS_ELB" or "HEADER_X_FORWARDED_TRAEFIK" constants instead.');
599599
}
600600
self::$trustedProxies = array_reduce($proxies, function ($proxies, $proxy) {
601601
if ('REMOTE_ADDR' !== $proxy) {

src/Symfony/Component/HttpFoundation/Tests/RequestTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2503,7 +2503,7 @@ public function preferSafeContentData()
25032503
*/
25042504
public function testXForwarededAllConstantDeprecated()
25052505
{
2506-
$this->expectDeprecation('Since symfony/http-fundation 5.2: The "HEADER_X_FORWARDED_ALL" constant is deprecated, use either "HEADER_X_FORWARDED_FOR | HEADER_X_FORWARDED_HOST | HEADER_X_FORWARDED_PORT | HEADER_X_FORWARDED_PROTO" or "HEADER_X_FORWARDED_AWS_ELB" or "HEADER_X_FORWARDED_TRAEFIK" constants instead.');
2506+
$this->expectDeprecation('Since symfony/http-foundation 5.2: The "HEADER_X_FORWARDED_ALL" constant is deprecated, use either "HEADER_X_FORWARDED_FOR | HEADER_X_FORWARDED_HOST | HEADER_X_FORWARDED_PORT | HEADER_X_FORWARDED_PROTO" or "HEADER_X_FORWARDED_AWS_ELB" or "HEADER_X_FORWARDED_TRAEFIK" constants instead.');
25072507

25082508
Request::setTrustedProxies([], Request::HEADER_X_FORWARDED_ALL);
25092509
}

0 commit comments

Comments
 (0)
0