Legoktm has uploaded a new change for review.
https://gerrit.wikimedia.org/r/250843
Change subject: Add type hinting
......................................................................
Add type hinting
Change-Id: I79b1f318c2bf9234bad256b359909d30e8e8bf8d
---
M includes/QuickSurveys.hooks.php
1 file changed, 3 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/QuickSurveys
refs/changes/43/250843/1
diff --git a/includes/QuickSurveys.hooks.php b/includes/QuickSurveys.hooks.php
index 6be55e5..b565e9c 100644
--- a/includes/QuickSurveys.hooks.php
+++ b/includes/QuickSurveys.hooks.php
@@ -9,7 +9,9 @@
namespace QuickSurveys;
use ConfigFactory;
+use OutputPage;
use ResourceLoader;
+use Skin;
class Hooks {
/**
@@ -75,7 +77,7 @@
* @param Skin $sk
* @return bool
*/
- public static function onBeforePageDisplay( &$out, &$sk ) {
+ public static function onBeforePageDisplay( OutputPage &$out, Skin &$sk
) {
$title = $out->getTitle();
if ( $title->inNamespace( NS_MAIN ) && $title->exists() ) {
$out->addModules( 'ext.quicksurveys.init' );
--
To view, visit https://gerrit.wikimedia.org/r/250843
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I79b1f318c2bf9234bad256b359909d30e8e8bf8d
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/QuickSurveys
Gerrit-Branch: master
Gerrit-Owner: Legoktm <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits