ResourceLoaderEditToolbarModule: Fix PHP Strict Standards warning
authorBartosz Dziewoński <matma.rex@gmail.com>
Tue, 16 Sep 2014 14:46:19 +0000 (16:46 +0200)
committerBartosz Dziewoński <matma.rex@gmail.com>
Tue, 16 Sep 2014 14:46:19 +0000 (16:46 +0200)
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

includes/resourceloader/ResourceLoaderEditToolbarModule.php

index 0049421..2e07911 100644 (file)
@@ -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;