X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Fsqlite.inc;h=33ca0ffc71b87867dab35a31b3060f1df92bf583;hb=e8dd1f43fb16919007aa865560eaef24e2d6cc08;hp=5c0fd07fbb92aaa7164f8b3dba6e0b36ffa5bfbb;hpb=31d0a18d3efd13f025633df1cc5a5be7b058f9a3;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/sqlite.inc b/maintenance/sqlite.inc index 5c0fd07fbb..33ca0ffc71 100644 --- a/maintenance/sqlite.inc +++ b/maintenance/sqlite.inc @@ -49,17 +49,17 @@ class Sqlite { throw new MWException( "Can't check SQL syntax: SQLite not found" ); } if ( !is_array( $files ) ) { - $files = array( $files ); + $files = [ $files ]; } - $allowedTypes = array_flip( array( + $allowedTypes = array_flip( [ 'integer', 'real', 'text', 'blob', // NULL type is omitted intentionally - ) ); + ] ); - $db = new DatabaseSqliteStandalone( ':memory:' ); + $db = DatabaseSqlite::newStandaloneInstance( ':memory:' ); try { foreach ( $files as $file ) { $err = $db->sourceFile( $file );