From e84efc4b28ed2ca2cf26978ac2ac97b9d82cefe4 Mon Sep 17 00:00:00 2001 From: "Roland Franssen :)" Date: Thu, 5 Aug 2021 17:16:47 +0200 Subject: [PATCH] [HttpFoundation] Mark Request::get() internal --- UPGRADE-5.4.md | 5 +++++ src/Symfony/Component/HttpFoundation/Request.php | 2 ++ 2 files changed, 7 insertions(+) diff --git a/UPGRADE-5.4.md b/UPGRADE-5.4.md index 54f41b746e496..98a2ae0ce1c64 100644 --- a/UPGRADE-5.4.md +++ b/UPGRADE-5.4.md @@ -23,6 +23,11 @@ HttpKernel * Deprecate `AbstractTestSessionListener::getSession` inject a session in the request instead +HttpFoundation +-------------- + + * Mark `Request::get()` internal, use explicit input sources instead + Messenger --------- diff --git a/src/Symfony/Component/HttpFoundation/Request.php b/src/Symfony/Component/HttpFoundation/Request.php index ab22200fc941b..debb08f1759cb 100644 --- a/src/Symfony/Component/HttpFoundation/Request.php +++ b/src/Symfony/Component/HttpFoundation/Request.php @@ -703,6 +703,8 @@ public static function getHttpMethodParameterOverride() * @param mixed $default The default value if the parameter key does not exist * * @return mixed + * + * @internal since Symfony 5.4, use explicit input sources instead */ public function get(string $key, $default = null) {