-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[HttpFoundation] Small phpdoc improvement #40973
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
Hey! I think @mcfedr has recently worked with this code. Maybe they can help review this? Cheers! Carsonbot |
This should probably be done in 4.4 instead. |
hmm, I tried simply chaing the branch, but bad things have happened. Should I close this and create a new PR, or is there some way to fix it? |
@flack the bad thing is that your feature branch is still based on 5.x |
@stof , thanks. I ran Some day I hope I'll get the hang of the symfony git workflow, but it could take a while... :-) |
@flack that's exactly how to solve that (the case of rebasing a feature branch on top of an older target branch is not specific to Symfony's git workflow, which is why |
@stof yeah, I meant more the workflow of not merging to master and then downwards from there, but to the oldest applicable branch and then upwards (or something). But anyways, off-topic here I guess :-) |
@flack you cannot merge downwards (as that would merge the whole 5.x history into 4.4). The Symfony process allows to maintian things with merges, meaning each commit exists only once in the history. |
Thank you @flack. |
This PR was merged into the 4.4 branch. Discussion ---------- [HttpFoundation] Small phpdoc improvement | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | | License | MIT | Doc PR | I have been looking for a way to emulate `$_REQUEST` in Symfony, and I always thought the `get` method is useless for that, because it only looks at some custom routing stuff, GET and whatever BODY might be. Only today I actually looked at the source code and found out that it's actually (almost) doing what I was looking for, i.e. check `$_GET`, and then `$_POST`. So I figured it would be good to be a bit more explicit in the phpdoc (analoguous to the phpdoc for `$request->request`, which says "Request body parameters ($_POST)."). Commits ------- a53f256 Small phpdoc imporvement
I have been looking for a way to emulate
$_REQUEST
in Symfony, and I always thought theget
method is useless for that, because it only looks at some custom routing stuff, GET and whatever BODY might be. Only today I actually looked at the source code and found out that it's actually (almost) doing what I was looking for, i.e. check$_GET
, and then$_POST
. So I figured it would be good to be a bit more explicit in the phpdoc (analoguous to the phpdoc for$request->request
, which says "Request body parameters ($_POST).").