8000 minor #18442 [HttpFoundation] Improve phpdoc (mnapoli) · symfony/symfony@019e316 · GitHub
[go: up one dir, main page]

Skip to content

Commit 019e316

Browse files
minor #18442 [HttpFoundation] Improve phpdoc (mnapoli)
This PR was submitted for the master branch but it was merged into the 2.3 branch instead (closes #18442). Discussion ---------- [HttpFoundation] Improve phpdoc | Q | A | ------------- | --- | Branch? | master? | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Improve the phpdoc for the `$default` parameter of the `get()` method. It wasn't clear when the default value would be used (whether the key would not exist or the value was `null` or nullish). The comment is now in sync with `Symfony\Component\HttpFoundation\ParameterBag::get()`. Commits ------- 6bfbb2e [HttpFoundation] Improve phpdoc
2 parents 511e41a + 6bfbb2e commit 019e316

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
Origi 695E nal file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ public static function getHttpMethodParameterOverride()
674674
* public property instead (query, attributes, request).
675675
*
676676
* @param string $key the key
677-
* @param mixed $default the default value
677+
* @param mixed $default the default value if the parameter key does not exist
678678
* @param bool $deep is parameter deep in multidimensional array
679679
*
680680
* @return mixed

0 commit comments

Comments
 (0)
0