From: Bartosz Dziewoński Date: Tue, 16 Sep 2014 14:46:19 +0000 (+0200) Subject: ResourceLoaderEditToolbarModule: Fix PHP Strict Standards warning X-Git-Tag: 1.31.0-rc.0~14001 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/membres/fiche.php?a=commitdiff_plain;h=c43234f78b4550babcb791aefa83d83b4de1e2ef;p=lhc%2Fweb%2Fwiklou.git ResourceLoaderEditToolbarModule: Fix PHP Strict Standards warning PHP Strict Standards: Declaration of ResourceLoaderEditToolbarModule::getLessCompiler() should be compatible with ResourceLoaderFileModule::getLessCompiler(ResourceLoaderContext $context = NULL) in …/includes/resourceloader/ResourceLoaderEditToolbarModule.php on line 0 Change-Id: I6b2de82028a81db7c65eb22f2535fbe4fa70cc91 --- diff --git a/includes/resourceloader/ResourceLoaderEditToolbarModule.php b/includes/resourceloader/ResourceLoaderEditToolbarModule.php index 004942147d..2e07911c63 100644 --- a/includes/resourceloader/ResourceLoaderEditToolbarModule.php +++ b/includes/resourceloader/ResourceLoaderEditToolbarModule.php @@ -94,7 +94,7 @@ class ResourceLoaderEditToolbarModule extends ResourceLoaderFileModule { * @param ResourceLoaderContext $context * @return lessc */ - protected function getLessCompiler( ResourceLoaderContext $context ) { + protected function getLessCompiler( ResourceLoaderContext $context = null ) { $compiler = parent::getLessCompiler(); $compiler->setVariables( $this->getLessVars( $context ) ); return $compiler;