dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Convert Special:DeletedContributions to use OOUI."
[lhc/web/wiklou.git]
/
includes
/
utils
/
MWRestrictions.php
diff --git
a/includes/utils/MWRestrictions.php
b/includes/utils/MWRestrictions.php
index
617e8f5
..
caf88a1
100644
(file)
--- a/
includes/utils/MWRestrictions.php
+++ b/
includes/utils/MWRestrictions.php
@@
-27,6
+27,7
@@
class MWRestrictions {
/**
* @param array $restrictions
/**
* @param array $restrictions
+ * @throws InvalidArgumentException
*/
protected function __construct( array $restrictions = null ) {
if ( $restrictions !== null ) {
*/
protected function __construct( array $restrictions = null ) {
if ( $restrictions !== null ) {
@@
-44,6
+45,7
@@
class MWRestrictions {
/**
* @param array $restrictions
* @return MWRestrictions
/**
* @param array $restrictions
* @return MWRestrictions
+ * @throws InvalidArgumentException
*/
public static function newFromArray( array $restrictions ) {
return new self( $restrictions );
*/
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
/**
* @param string $json JSON representation of the restrictions
* @return MWRestrictions
+ * @throws InvalidArgumentException
*/
public static function newFromJson( $json ) {
$restrictions = FormatJson::decode( $json, true );
*/
public static function newFromJson( $json ) {
$restrictions = FormatJson::decode( $json, true );