Merge "Fix return in HttpStatus::header"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Sat, 16 Sep 2017 20:02:50 +0000 (20:02 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Sat, 16 Sep 2017 20:02:50 +0000 (20:02 +0000)
includes/libs/HttpStatus.php

index 27f8728..7e65216 100644 (file)
@@ -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();