Explicitly declare ApiFormatBase::initPrinter public
authorSiebrand Mazeland <siebrand@kitano.nl>
Tue, 8 Mar 2016 07:30:25 +0000 (08:30 +0100)
committerAnomie <bjorsch@wikimedia.org>
Tue, 8 Mar 2016 16:11:31 +0000 (16:11 +0000)
It's overridden three times, and in all cases it's public.

Change-Id: I1712319076b38bbb5418c60b954e174354831be3

includes/api/ApiFormatBase.php

index 7c203d9..c826bba 100644 (file)
@@ -151,7 +151,7 @@ abstract class ApiFormatBase extends ApiBase {
         * Initialize the printer function and prepare the output headers.
         * @param bool $unused Always false since 1.25
         */
-       function initPrinter( $unused = false ) {
+       public function initPrinter( $unused = false ) {
                if ( $this->mDisabled ) {
                        return;
                }