X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fexception%2FHttpError.php;h=f464d8af66d6ce4e49008f0e3255d4ff8969977a;hp=9211bf8267ea3f7b72137b43619c132ae9f0af05;hb=2480aae0c97d822e10b50619e7b48b25c45af073;hpb=c1d11183bc00b548404393d2229b2d635e867cf3 diff --git a/includes/exception/HttpError.php b/includes/exception/HttpError.php index 9211bf8267..f464d8af66 100644 --- a/includes/exception/HttpError.php +++ b/includes/exception/HttpError.php @@ -31,8 +31,6 @@ class HttpError extends MWException { private $httpCode, $header, $content; /** - * Constructor - * * @param int $httpCode HTTP status code to send to the client * @param string|Message $content Content of the message * @param string|Message|null $header Content of the header (\ and \) @@ -88,11 +86,11 @@ class HttpError extends MWException { $content = $content->text(); } - $context = array( + $context = [ 'file' => $this->getFile(), 'line' => $this->getLine(), 'http_code' => $this->httpCode, - ); + ]; $logMsg = "$content ({http_code}) from {file}:{line}";