diff --git a/src/Symfony/Component/HttpFoundation/Request.php b/src/Symfony/Component/HttpFoundation/Request.php index a542cf46720e..a209b421a087 100644 --- a/src/Symfony/Component/HttpFoundation/Request.php +++ b/src/Symfony/Component/HttpFoundation/Request.php @@ -723,7 +723,17 @@ public static function getHttpMethodParameterOverride() */ public function get($key, $default = null, $deep = false) { - return $this->query->get($key, $this->attributes->get($key, $this->request->get($key, $default, $deep), $deep), $deep); + $result = $this->query->get($key, $this, $deep); + if ($result === $this) { + $result = $this->attributes->get($key, $this, $deep); + } + if ($result === $this) { + $result = $this->request->get($key, $this, $deep); + } + if ($result === $this) { + return $default; + } + return $result; } /**