From 246362f8c2acb145c01fba88c8e7bdb27f38d78e Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Sun, 27 Mar 2011 14:13:57 +0000 Subject: [PATCH] Fix default implementation of ResourceLoaderModule::getStyles() to return an array, not a string. Was causing problems with another function that was being fed the return value of getStyles() and used an array type hint --- includes/resourceloader/ResourceLoaderModule.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/resourceloader/ResourceLoaderModule.php b/includes/resourceloader/ResourceLoaderModule.php index 6f0d0754c5..73fcddf4a8 100644 --- a/includes/resourceloader/ResourceLoaderModule.php +++ b/includes/resourceloader/ResourceLoaderModule.php @@ -135,7 +135,7 @@ abstract class ResourceLoaderModule { */ public function getStyles( ResourceLoaderContext $context ) { // Stub, override expected - return ''; + return array(); } /** -- 2.20.1