X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=blobdiff_plain;f=includes%2Fapi%2FApiTag.php;h=f2b52cd33ae8daf40c1b95a89b482c79a36ef097;hb=b120fa48410839773877ae4434e031203f0c1ecf;hp=bb6c580385024ae8dbdf56703d34a47ae3072989;hpb=a1ef77b2d80830fbcb617a83961d78cff9d6e384;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiTag.php b/includes/api/ApiTag.php index bb6c580385..f2b52cd33a 100644 --- a/includes/api/ApiTag.php +++ b/includes/api/ApiTag.php @@ -96,6 +96,7 @@ class ApiTag extends ApiBase { $valid = RecentChange::newFromId( $id ); if ( $valid && $this->getPermissionManager()->isBlockedFrom( $user, $valid->getTitle() ) ) { $idResult['status'] = 'error'; + // @phan-suppress-next-line PhanTypeMismatchArgument $idResult += $this->getErrorFormatter()->formatMessage( ApiMessage::create( 'apierror-blocked', 'blocked', @@ -111,6 +112,7 @@ class ApiTag extends ApiBase { $this->getPermissionManager()->isBlockedFrom( $user, $valid->getPageAsLinkTarget() ) ) { $idResult['status'] = 'error'; + // @phan-suppress-next-line PhanTypeMismatchArgument $idResult += $this->getErrorFormatter()->formatMessage( ApiMessage::create( 'apierror-blocked', 'blocked',