Skip to content

Commit 4875486

Browse files
committed
Merge branch '5.4' into 6.4
* 5.4: [HttpFoundation] Remove invalid HTTP method from exception message
2 parents 4c0341b + 38bd9bc commit 4875486

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Request.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1231,7 +1231,7 @@ public function getMethod(): string
12311231
}
12321232

12331233
if (!preg_match('/^[A-Z]++$/D', $method)) {
1234-
throw new SuspiciousOperationException(sprintf('Invalid method override "%s".', $method));
1234+
throw new SuspiciousOperationException('Invalid HTTP method override.');
12351235
}
12361236

12371237
return $this->method = $method;

0 commit comments

Comments
 (0)