From 0d571db65da17b54c91932ef4adc09842b4d7a03 Mon Sep 17 00:00:00 2001 From: Matthieu Napoli Date: Tue, 5 Apr 2016 11:24:23 +0200 Subject: [PATCH] [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()`. --- src/Symfony/Component/HttpFoundation/Request.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/HttpFoundation/Request.php b/src/Symfony/Component/HttpFoundation/Request.php index be8c8cf85f279..7a94a86036e7c 100644 --- a/src/Symfony/Component/HttpFoundation/Request.php +++ b/src/Symfony/Component/HttpFoundation/Request.php @@ -709,7 +709,7 @@ public static function getHttpMethodParameterOverride() * Order of precedence: PATH (routing placeholders or custom attributes), GET, BODY * * @param string $key the key - * @param mixed $default the default value + * @param mixed $default the default value if the parameter key does not exist * * @return mixed */