Pass-by-reference is not needed
https://secure.php.net/manual/en/language.oop5.references.php Change-Id: I6730b8e4326abf304f102fe5c50041342e3a70a1
This commit is contained in:
@@ -110,7 +110,7 @@ class UniversalLanguageSelectorHooks {
|
||||
* @return bool
|
||||
* Hook: ResourceLoaderTestModules
|
||||
*/
|
||||
public static function addTestModules( array &$testModules, ResourceLoader &$resourceLoader ) {
|
||||
public static function addTestModules( array &$testModules, ResourceLoader $resourceLoader ) {
|
||||
$testModules['qunit']['ext.uls.tests'] = array(
|
||||
'scripts' => array( 'tests/qunit/ext.uls.tests.js' ),
|
||||
'dependencies' => array( 'jquery.uls', 'ext.uls.init', 'ext.uls.preferences' ),
|
||||
@@ -357,8 +357,8 @@ class UniversalLanguageSelectorHooks {
|
||||
* @param QuickTemplate $template
|
||||
* @return bool
|
||||
*/
|
||||
public static function onSkinTemplateOutputPageBeforeExec( Skin &$skin,
|
||||
QuickTemplate &$template
|
||||
public static function onSkinTemplateOutputPageBeforeExec( Skin $skin,
|
||||
QuickTemplate $template
|
||||
) {
|
||||
global $wgULSPosition;
|
||||
|
||||
@@ -403,7 +403,7 @@ class UniversalLanguageSelectorHooks {
|
||||
* @param ResourceLoader $resourceLoader
|
||||
* @return boolean true
|
||||
*/
|
||||
public static function onResourceLoaderRegisterModules( ResourceLoader &$resourceLoader ) {
|
||||
public static function onResourceLoaderRegisterModules( ResourceLoader $resourceLoader ) {
|
||||
global $wgResourceModules, $wgULSEventLogging;
|
||||
|
||||
if (
|
||||
|
||||
Reference in New Issue
Block a user