From 38bd9bc4f5de292ddbf860d02596133dbc09d422 Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Fri, 25 Oct 2024 15:35:27 +0200 Subject: [PATCH] [HttpFoundation] Remove invalid HTTP method from exception message --- Request.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Request.php b/Request.php index 561cb887f..31d11c5da 100644 --- a/Request.php +++ b/Request.php @@ -1294,7 +1294,7 @@ public function getMethod() } if (!preg_match('/^[A-Z]++$/D', $method)) { - throw new SuspiciousOperationException(sprintf('Invalid method override "%s".', $method)); + throw new SuspiciousOperationException('Invalid HTTP method override.'); } return $this->method = $method;