Skip to content

Commit 6472a9f

Browse files
committed
Merge branch '6.4' into 7.1
* 6.4: [HttpFoundation] Remove invalid HTTP method from exception message
2 parents 3d7bbf0 + 4875486 commit 6472a9f

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
@@ -1165,7 +1165,7 @@ public function getMethod(): string
11651165
}
11661166

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

11711171
return $this->method = $method;

0 commit comments

Comments
 (0)