Skip to content

Commit

Permalink
Merge branch '6.4' into 7.1
Browse files Browse the repository at this point in the history
* 6.4:
  [HttpFoundation] Remove invalid HTTP method from exception message
  • Loading branch information
derrabus committed Nov 3, 2024
2 parents 3d7bbf0 + 4875486 commit 6472a9f
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 @@ -1165,7 +1165,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 6472a9f

Please sign in to comment.