forbidden exception with body

This commit is contained in:
Yuri Kuznetsov
2022-03-28 14:38:03 +03:00
parent 01e0d51c0a
commit bdfe6b5e23
2 changed files with 30 additions and 3 deletions
+2 -2
View File
@@ -43,9 +43,9 @@ class Error extends InternalServerError implements HasBody
parent::__construct($message, $code, $previous);
}
public static function createWithBody(string $reason, string $body): self
public static function createWithBody(string $message, string $body): self
{
$exception = new static($reason);
$exception = new static($message);
$exception->body = $body;