X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Fsqlite.inc;h=33ca0ffc71b87867dab35a31b3060f1df92bf583;hb=bdfa96eb726c9997a010f5a194eec71925bfddc2;hp=e17319087b435d997375bbd15bf298b9cff9f587;hpb=fbcb3d5f980a9be0611424764d6f18e749e4c1c9;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/sqlite.inc b/maintenance/sqlite.inc index e17319087b..33ca0ffc71 100644 --- a/maintenance/sqlite.inc +++ b/maintenance/sqlite.inc @@ -49,15 +49,15 @@ 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 = DatabaseSqlite::newStandaloneInstance( ':memory:' ); try {