Skip to content

Commit b08c61d

Browse files
committed
Fix method signatures
1 parent 015f5cd commit b08c61d

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

bootstrap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
return;
99
}
1010

11-
define( 'MWSTAKE_MEDIAWIKI_COMPONENT_COMMONUSERINTERFACE_VERSION', '5.1.2' );
11+
define( 'MWSTAKE_MEDIAWIKI_COMPONENT_COMMONUSERINTERFACE_VERSION', '5.1.3' );
1212

1313
MWStake\MediaWiki\ComponentLoader\Bootstrapper::getInstance()
1414
->register( 'commonuserinterface', static function () {

src/Setup.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class Setup implements SkinAfterContentHook, SiteNoticeAfterHook, BeforePageDisp
1919
* @param Skin $skin
2020
* @return bool
2121
*/
22-
public function onSkinAfterContent( &$data, Skin $skin ) {
22+
public function onSkinAfterContent( &$data, $skin ) {
2323
$services = MediaWikiServices::getInstance();
2424
/** @var SkinSlotRendererFactory */
2525
$skinSlotRendererFactory = $services->getService( 'MWStakeCommonUISkinSlotRendererFactory' );
@@ -53,7 +53,7 @@ public function onSiteNoticeAfter( &$siteNotice, $skin ) {
5353
* @param Skin $skin
5454
* @return bool
5555
*/
56-
public function onBeforePageDisplay( OutputPage $out, Skin $skin ) {
56+
public function onBeforePageDisplay( $out, $skin ): void {
5757
$services = MediaWikiServices::getInstance();
5858
/** @var ComponentManager */
5959
$componentManager = $services->getService( 'MWStakeCommonUIComponentManager' );
@@ -62,7 +62,6 @@ public function onBeforePageDisplay( OutputPage $out, Skin $skin ) {
6262
$out->addModuleStyles( $componentManager->getRLModuleStyles() );
6363

6464
$out->addModules( 'mwstake.component.commonui' );
65-
return true;
6665
}
6766

6867
/**

0 commit comments

Comments
 (0)