Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 39e48a0

Browse files
fabpotMatTheCat
authored andcommitted
minor #40973 [HttpFoundation] Small phpdoc improvement (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
2 parents 8ff0a3e + a53f256 commit 39e48a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/HttpFoundation/Request.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,7 @@ public static function getHttpMethodParameterOverride()
698698
* flexibility in controllers, it is better to explicitly get request parameters from the appropriate
699699
* public property instead (attributes, query, request).
700700
*
701-
* Order of precedence: PATH (routing placeholders or custom attributes), GET, BODY
701+
* Order of precedence: PATH (routing placeholders or custom attributes), GET, POST
702702
*
703703
* @param mixed $default The default value if the parameter key does not exist
704704
*

0 commit comments

Comments
 (0)