-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[HTTP Foundation] Deprecate passing argument to method Request::isMethodSafe() #31658
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
de78c59
to
d3e0689
Compare
Thanks, please rebase and retarget for branch 4.4, as we don't add deprecations on other branches. |
@nicolas-grekas Done |
@dFayet It looks like your merged a branch here. It makes the pull request not-mergeable on our side. Can you rebase your branch (it will remove the merge commit)? |
3a4321d
to
6aa78cf
Compare
@fabpot done |
Can you have a look at the tests, they seem to be broken because of these changes (low). |
@fabpot Done for low. Is there anything to be done for the high one? |
7fc0df1
to
59fa1bd
Compare
Thank you @dFayet. |
… Request::isMethodSafe() (dFayet) This PR was squashed before being merged into the 4.4 branch (closes #31658). Discussion ---------- [HTTP Foundation] Deprecate passing argument to method Request::isMethodSafe() | Q | A | ------------- | --- | Branch? | 4.2 | Bug fix? | no | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | BC breaks? | no <!-- see https://symfony.com/bc --> | Deprecations? | yes <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tests pass? | yes <!-- please add some, will be required by reviewers --> | Fixed tickets | #31323 <!-- #-prefixed issue number(s), if any --> | License | MIT | Doc PR | <!-- required for new features --> Passing argument to `Request::isMethodSafe()` should have been deprecated in 4.1. As mentionned there: https://github.com/symfony/http-foundation/blob/master/Request.php#L1435-L1452 We also remove Exceptions throwed when you call `Request::isMethodSafe()` or `Request::isMethodSafe(true)` Commits ------- 59fa1bd [HTTP Foundation] Deprecate passing argument to method Request::isMethodSafe()
Passing argument to
Request::isMethodSafe()
should have been deprecated in 4.1. As mentionned there: https://github.com/symfony/http-foundation/blob/master/Request.php#L1435-L1452We also remove Exceptions throwed when you call
Request::isMethodSafe()
orRequest::isMethodSafe(true)