Skip to content

Commit 867a045

Browse files
mnapolinicolas-grekas
authored andcommitted
[HttpFoundation] Improve phpdoc
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()`.
1 parent a8a9124 commit 867a045

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Request.php

Lines changed: 1 addition & 1 deletion
Original 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)