X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Frevisiondelete%2FRevisionDeleter.php;h=db2bc6a4dbf99f98a51cc73cbf9d859d1687cc8a;hb=973459bd0e339fe15c7f78f1dbfc43a19e1b5712;hp=d4f816780c4e65341856c7a5d563e721afe69e43;hpb=3b07da886220352c3e393ec09b0c674b3968d5ad;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/revisiondelete/RevisionDeleter.php b/includes/revisiondelete/RevisionDeleter.php index d4f816780c..db2bc6a4db 100644 --- a/includes/revisiondelete/RevisionDeleter.php +++ b/includes/revisiondelete/RevisionDeleter.php @@ -78,6 +78,7 @@ class RevisionDeleter { * @param Title $title * @param array $ids * @return RevDelList + * @throws MWException */ public static function createList( $typeName, IContextSource $context, Title $title, array $ids ) { $typeName = self::getCanonicalTypeName( $typeName ); @@ -115,7 +116,7 @@ class RevisionDeleter { * "revdelete-restricted", "revdelete-unrestricted" indicating (un)suppression * or null to indicate nothing in particular. * You can turn the keys in $arr[0] and $arr[1] into message keys by - * appending -hid and and -unhid to the keys respectively. + * appending -hid and -unhid to the keys respectively. * * @param int $n The new bitfield. * @param int $o The old bitfield. @@ -232,9 +233,9 @@ class RevisionDeleter { * @since 1.22 * @param array $bitPars ExtractBitParams() params * @param int $oldfield Current bitfield - * @return array + * @return integer */ - public static function extractBitfield( $bitPars, $oldfield ) { + public static function extractBitfield( array $bitPars, $oldfield ) { // Build the actual new rev_deleted bitfield $newBits = 0; foreach ( $bitPars as $const => $val ) {