X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fdao%2FDBAccessObjectUtils.php;h=b98174b9ee41476eb41118bf8b3a172424f34c89;hb=903613ea74f764bc95421059eed61f0d4df92956;hp=ad7804c21b52e418457e781f2019d5dc17e5735f;hpb=4f985950ba5df1efa0f6d91ccaf52a55e33ece00;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/dao/DBAccessObjectUtils.php b/includes/dao/DBAccessObjectUtils.php index ad7804c21b..b98174b9ee 100644 --- a/includes/dao/DBAccessObjectUtils.php +++ b/includes/dao/DBAccessObjectUtils.php @@ -47,13 +47,13 @@ class DBAccessObjectUtils { ? DB_MASTER : DB_SLAVE; - $options = array(); + $options = []; if ( self::hasFlags( $bitfield, IDBAccessObject::READ_EXCLUSIVE ) ) { $options[] = 'FOR UPDATE'; } elseif ( self::hasFlags( $bitfield, IDBAccessObject::READ_LOCKING ) ) { $options[] = 'LOCK IN SHARE MODE'; } - return array( $index, $options ); + return [ $index, $options ]; } }