Thread:Extension talk:Bootstrap/Fatal error: Cannot use object of type Closure as array in D:\xampp\htdocs\SNWiki\extensions\Bootstrap\src\Hooks\SetupAfterCache.php on line 119

Hello,

Mediawiki version 1.24 in windows platform

localsettings.php

require_once "$IP/extensions/Bootstrap/Bootstrap.php"; require_once "$IP/skins/Chameleon/Chameleon.php";

i installed Bootstrap for skin Chameleon skin

while opening a page getting Error

Fatal error: Cannot use object of type Closure as array in D:\xampp\htdocs\SNWiki\extensions\Bootstrap\src\Hooks\SetupAfterCache.php on line 119

Here the Line 119 in SetupAfterCache.php

protected function removeLegacyLessCompilerFromComposerAutoloader {

$autoloadFunctions = spl_autoload_functions;

foreach ( $autoloadFunctions as $autoloadFunction ) {

'''			$classLoader = $autoloadFunction[ 0 ]; '''

if ( is_a( $classLoader, '\Composer\Autoload\ClassLoader' ) ) {

$classMap = $classLoader->getClassMap;

if ( !is_array( $classMap ) ||					!array_key_exists( 'lessc', $classMap ) ||

strpos( $classMap[ 'lessc' ], '/less.php/less.php/lessc.inc.php') !== false ) {

$classLoader->addClassMap( array( 'lessc' => null ) );

}

break;

}

}

}

Please do the need ful

Thanky ou

-- Ragu Thangavel