X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Futils%2FMWRestrictions.php;h=caf88a15f1c83e3d7cd8f9c6b8a4c6a3dd90494c;hb=f284dffc212bbf6628ccbd386cc1d2b16ace891c;hp=617e8f59fd3fec6aa673e79e3578266577476bb4;hpb=de966d247c7f51e646c29acd884c6c316a232fd4;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/utils/MWRestrictions.php b/includes/utils/MWRestrictions.php index 617e8f59fd..caf88a15f1 100644 --- a/includes/utils/MWRestrictions.php +++ b/includes/utils/MWRestrictions.php @@ -27,6 +27,7 @@ class MWRestrictions { /** * @param array $restrictions + * @throws InvalidArgumentException */ protected function __construct( array $restrictions = null ) { if ( $restrictions !== null ) { @@ -44,6 +45,7 @@ class MWRestrictions { /** * @param array $restrictions * @return MWRestrictions + * @throws InvalidArgumentException */ public static function newFromArray( array $restrictions ) { return new self( $restrictions ); @@ -52,6 +54,7 @@ class MWRestrictions { /** * @param string $json JSON representation of the restrictions * @return MWRestrictions + * @throws InvalidArgumentException */ public static function newFromJson( $json ) { $restrictions = FormatJson::decode( $json, true );