Currently you get confusing fatals like:
Argument 2 passed to ExtensionRegistry::processAutoLoader() must
be an array, null given
Change-Id: Icc7198db152e071c5a42e06547268fbaee916107
foreach ( $this->queued as $path => $mtime ) {
$json = file_get_contents( $path );
$info = json_decode( $json, /* $assoc = */ true );
+ if ( !is_array( $info ) ) {
+ throw new Exception( "$path is not a valid JSON file." );
+ }
$autoload = $this->processAutoLoader( dirname( $path ), $info );
// Set up the autoloader now so custom processors will work
$GLOBALS['wgAutoloadClasses'] += $autoload;