8000 Merge branch '5.4' into 6.4 · symfony/symfony@b98c0be · GitHub
[go: up one dir, main page]

Skip to content

Commit b98c0be

Browse files
committed
Merge branch '5.4' into 6.4
* 5.4: [HttpFoundation] Remove invalid HTTP method from exception message
2 parents cefa19a + 74fcbfa commit b98c0be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/HttpFoundation/Request.php

Lines changed: 1 addition & 1 deletion
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< 5109 span class="diff-text-marker">-
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)
0