From f3d415fd272543b77030641821a9eefbf1ed2fe7 Mon Sep 17 00:00:00 2001 From: Derick Alangi Date: Mon, 25 Feb 2019 19:52:28 +0100 Subject: [PATCH] Remove object passed by references to method -> Objects by default as passed by reference so removed & in front method header. In addition, updated the PHPDoc comments to reflect the changes. Change-Id: I69ad2090205f6bd694744779d2c46a3506c85378 --- includes/PopupsHooks.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/PopupsHooks.php b/includes/PopupsHooks.php index 4cd2735b6..7340efa3e 100644 --- a/includes/PopupsHooks.php +++ b/includes/PopupsHooks.php @@ -79,10 +79,10 @@ class PopupsHooks { /** * Allows last minute changes to the output page, e.g. adding of CSS or JavaScript by extensions. * - * @param OutputPage &$out The Output page object - * @param Skin &$skin &Skin object that will be used to generate the page + * @param OutputPage $out The Output page object + * @param Skin $skin Skin object that will be used to generate the page */ - public static function onBeforePageDisplay( OutputPage &$out, Skin &$skin ) { + public static function onBeforePageDisplay( OutputPage $out, Skin $skin ) { /** @var PopupsContext $context */ $context = MediaWikiServices::getInstance()->getService( 'Popups.Context' ); if ( $context->isTitleBlacklisted( $out->getTitle() ) ) {