}
}
- wfDebugLog( 'caches', get_class( $this ) . ": using store $storeClass" );
+ wfDebugLog( 'caches', static::class . ": using store $storeClass" );
if ( !empty( $conf['storeDirectory'] ) ) {
$storeConf['directory'] = $conf['storeDirectory'];
}
* array.
* @param string $code
* @param string $key
- * @return bool|null|string
+ * @return bool|null|string|string[]
*/
public function getSubitemList( $code, $key ) {
if ( in_array( $key, self::$splitKeys ) ) {
* @return array Array with a 'messages' key, or empty array if the file doesn't exist
*/
public function readJSONFile( $fileName ) {
-
if ( !is_readable( $fileName ) ) {
return [];
}
$data = FormatJson::decode( $json, true );
if ( $data === null ) {
-
throw new MWException( __METHOD__ . ": Invalid JSON file: $fileName" );
}
$blobStore = new MessageBlobStore();
$blobStore->clear();
}
-
}
/**