From d19a4dd230386343089b9934575e13fce99e8148 Mon Sep 17 00:00:00 2001 From: Umherirrender Date: Sun, 10 Sep 2017 01:44:29 +0200 Subject: [PATCH] Fix return in HttpStatus::header No caller expected a bool as return, which is not given in any case, so remove it Change-Id: Iaf994342e9f783108c767bb2de13af7345247805 --- includes/libs/HttpStatus.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/libs/HttpStatus.php b/includes/libs/HttpStatus.php index 27f872857c..7e652162b2 100644 --- a/includes/libs/HttpStatus.php +++ b/includes/libs/HttpStatus.php @@ -98,7 +98,7 @@ class HttpStatus { $message = self::getMessage( $code ); if ( $message === null ) { trigger_error( "Unknown HTTP status code $code", E_USER_WARNING ); - return false; + return; } MediaWiki\HeaderCallback::warnIfHeadersSent(); -- 2.20.1