Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

[HttpFoundation] add back support for legacy constant values#23074

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
fabpot merged 1 commit intosymfony:3.3fromxabbuh:pr-23067
Jun 14, 2017

Conversation

@xabbuh
Copy link
Member

QA
Branch?3.3
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets
LicenseMIT
Doc PR

Due to the data type change of theRequest::HEADER_ constants in Symfony 3.3#23067 introduced a small BC break if someone used the old constant values statically instead of referring to the constants themselves.

@nicolas-grekas
Copy link
Member

nicolas-grekas commentedJun 6, 2017
edited
Loading

I'm not sure we should go that far in BC, especially since this is non serializable data (since we're talking about consts used in static props only.)
I'd suggest to wait for an actual bug report before adding this, if any.

@xabbuh
Copy link
MemberAuthor

The thing is we even advised to use these strings in the previous docblocks ofgetClientIp(),getPort(),isSecure() andgetHost().

@trigger_error(sprintf('The "%s()" method is deprecated since version 3.3 and will be removed in 4.0. Use the $trustedHeaderSet argument of the Request::setTrustedProxies() method instead.',__METHOD__),E_USER_DEPRECATED);

if (!array_key_exists($key,self::$trustedHeaders)) {
if ('forwared' ===$key) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

forwarded ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

indeed

@trigger_error(sprintf('The "%s()" method is deprecated since version 3.3 and will be removed in 4.0. Use the $trustedHeaderSet argument of the Request::setTrustedProxies() method instead.',__METHOD__),E_USER_DEPRECATED);

if (!array_key_exists($key,self::$trustedHeaders)) {
if ('forwared' ===$key) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

indeed

@fabpot
Copy link
Member

Thank you@xabbuh.

@fabpotfabpot merged commitfddd754 intosymfony:3.3Jun 14, 2017
fabpot added a commit that referenced this pull requestJun 14, 2017
…es (xabbuh)This PR was merged into the 3.3 branch.Discussion----------[HttpFoundation] add back support for legacy constant values| Q             | A| ------------- | ---| Branch?       | 3.3| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets || License       | MIT| Doc PR        |Due to the data type change of the `Request::HEADER_` constants in Symfony 3.3#23067 introduced a small BC break if someone used the old constant values statically instead of referring to the constants themselves.Commits-------fddd754 add back support for legacy constant values
@xabbuhxabbuh deleted the pr-23067 branchJune 14, 2017 20:59
@fabpotfabpot mentioned this pull requestJul 4, 2017
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@fabpotfabpotfabpot approved these changes

+1 more reviewer

@apetitpaapetitpaapetitpa requested changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

3.3

Development

Successfully merging this pull request may close these issues.

5 participants

@xabbuh@nicolas-grekas@fabpot@apetitpa@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp