X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fexception%2FHttpError.php;h=f464d8af66d6ce4e49008f0e3255d4ff8969977a;hb=4d25837b4941827ff1a84bb19ac4be744c9e18d5;hp=9211bf8267ea3f7b72137b43619c132ae9f0af05;hpb=415b31766677e190c13322742b4e42da1157538c;p=lhc%2Fweb%2Fwiklou.git 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}";