Skip to content

Commit cddd58b

Browse files
committed
Merge branch '7.1' into 7.2
* 7.1: [HttpFoundation] Remove invalid HTTP method from exception message
2 parents 735b851 + 6472a9f commit cddd58b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Request.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1168,7 +1168,7 @@ public function getMethod(): string
11681168
}
11691169

11701170
if (!preg_match('/^[A-Z]++$/D', $method)) {
1171-
throw new SuspiciousOperationException(\sprintf('Invalid method override "%s".', $method));
1171+
throw new SuspiciousOperationException('Invalid HTTP method override.');
11721172
}
11731173

11741174
return $this->method = $method;

0 commit comments

Comments
 (0)