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] remove deprecated code#41334

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
nicolas-grekas merged 1 commit intosymfony:6.0fromazjezz:http-foundation/input
May 23, 2021

Conversation

@azjezz
Copy link
Contributor

@azjezzazjezz commentedMay 20, 2021
edited
Loading

QA
Branch?6.0
Bug fix?no
New feature?no
Deprecations?no
Ticketsn/a
LicenseMIT
Doc PRsymfony/symfony-docs#...

@carsonbotcarsonbot added this to the6.0 milestoneMay 20, 2021
@azjezzazjezzforce-pushed thehttp-foundation/input branch 2 times, most recently from0e0d078 to6e74e9bCompareMay 20, 2021 13:57
@azjezzazjezz changed the title[HttpFoundation] remove deprecations[HttpFoundation] remove deprecated codeMay 20, 2021
@carsonbot
Copy link

Hey!

I think@pyrech has recently worked with this code. Maybe they can help review this?

Cheers!

Carsonbot

@azjezzazjezzforce-pushed thehttp-foundation/input branch from6e74e9b to0f7f3bcCompareMay 21, 2021 17:00
@azjezz
Copy link
ContributorAuthor

RFR, failure is unrelated.

* InputBag is a container for user input values such as $_GET, $_POST, $_REQUEST, and $_COOKIE.
*
* @author Saif Eddin Gmati <saif.gmati@symfony.com>
* @author Saif Eddin Gmati <azjezz@protonmail.com>

Choose a reason for hiding this comment

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

please submit this change on 5.2

* @return string|int|float|bool|null
*/
publicfunctionget(string$key,$default =null)
publicfunctionget(string$key,$default =null):string |int |float |bool |null

Choose a reason for hiding this comment

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

reverting as adding return types is a separate topic

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.');
}
self::$trustedProxies =array_reduce($proxies,function ($proxies,$proxy) {
self::$trustedProxies =array_reduce($proxies,staticfunction ($proxies,$proxy) {

Choose a reason for hiding this comment

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

reverting as this might create needles merge conflicts and is not needed: the surrounding method is already static, so is this closure.

Signed-off-by: azjezz <azjezz@protonmail.com>
@nicolas-grekas
Copy link
Member

Thank you@azjezz.

@nicolas-grekasnicolas-grekas merged commit8d9feff intosymfony:6.0May 23, 2021
@azjezzazjezz deleted the http-foundation/input branchMay 23, 2021 16:48
fabpot added a commit that referenced this pull requestOct 12, 2021
…obion)This PR was merged into the 6.0 branch.Discussion----------[HttpFoundation] remove legacy session lifetime logic| Q             | A| ------------- | ---| Branch?       | 6.0| Bug fix?      | no| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->| Tickets       || License       | MIT| Doc PR        | symfony/symfony-docs#... <!-- required for new features -->This part was only relevant for keeping bc with the old lifetime data. Has been forgotten to be removed in#41334 and#43120Commits-------54a578b [HttpFoundation] remove legacy session lifetime logic
@fabpotfabpot mentioned this pull requestNov 5, 2021
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas left review comments

Assignees

No one assigned

Projects

None yet

Milestone

6.0

Development

Successfully merging this pull request may close these issues.

3 participants

@azjezz@carsonbot@nicolas-grekas

[8]ページ先頭

©2009-2025 Movatter.jp