Skip to content

Commit

Permalink
Merge branch '5.4' into 6.4
Browse files Browse the repository at this point in the history
* 5.4:
  [HttpFoundation] Remove invalid HTTP method from exception message
  • Loading branch information
derrabus committed Nov 3, 2024
2 parents 4c0341b + 38bd9bc commit 4875486
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -1231,7 +1231,7 @@ public function getMethod(): string
}

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;
Expand Down

0 comments on commit 4875486

Please sign in to comment.