mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-23 21:53:35 +00:00
build: Updating composer dependencies
* mediawiki/minus-x: 0.3.2 → 1.0.0 * mediawiki/mediawiki-phan-config: 0.9.0 → 0.9.1 Change-Id: I119f4d56cce674302f34e938e598e6cc6bf28dc0
This commit is contained in:
parent
b497bcf337
commit
a14ec744f7
|
@ -12,8 +12,8 @@
|
|||
"jakub-onderka/php-parallel-lint": "1.0.0",
|
||||
"mediawiki/mediawiki-codesniffer": "29.0.0",
|
||||
"jakub-onderka/php-console-highlighter": "0.4.0",
|
||||
"mediawiki/minus-x": "0.3.2",
|
||||
"mediawiki/mediawiki-phan-config": "0.9.0"
|
||||
"mediawiki/minus-x": "1.0.0",
|
||||
"mediawiki/mediawiki-phan-config": "0.9.1"
|
||||
},
|
||||
"scripts": {
|
||||
"fix": [
|
||||
|
|
|
@ -773,6 +773,7 @@ class AbuseFilterRunner {
|
|||
$this->user->getName(),
|
||||
$maxExpiry,
|
||||
true,
|
||||
// @phan-suppress-next-line PhanTypeMismatchArgumentNullable
|
||||
$blockValues[2]
|
||||
);
|
||||
$message = [
|
||||
|
@ -782,6 +783,7 @@ class AbuseFilterRunner {
|
|||
];
|
||||
// Manually add the message. If we're here, there is one.
|
||||
$messages[] = $message;
|
||||
// @phan-suppress-next-line PhanTypeMismatchDimAssignment
|
||||
$actionsTaken[$blockValues[1]][] = 'block';
|
||||
}
|
||||
|
||||
|
|
|
@ -468,6 +468,7 @@ class AbuseFilterViewEdit extends AbuseFilterView {
|
|||
$out->addHTML( $form );
|
||||
|
||||
if ( $history_id ) {
|
||||
// @phan-suppress-next-line PhanPossiblyUndeclaredVariable
|
||||
$out->addWikiMsg( $oldWarningMessage, $history_id, $filter );
|
||||
}
|
||||
}
|
||||
|
|
|
@ -181,7 +181,6 @@ class AFPData {
|
|||
* only returns a boolean, and thus the type of the result has already been decided and cannot
|
||||
* be changed to be a DUNDEFINED from here.
|
||||
* @internal
|
||||
* @suppress PhanSuspiciousValueComparison Lots of false positives for self::DARRAY
|
||||
*/
|
||||
public function equals( AFPData $d2, $strict = false ) {
|
||||
if ( $this->type === self::DUNDEFINED || $d2->type === self::DUNDEFINED ) {
|
||||
|
|
|
@ -731,6 +731,7 @@ class AFPTreeParser extends AFPTransitionBase {
|
|||
}
|
||||
|
||||
$this->move();
|
||||
// @phan-suppress-next-next-line PhanPossiblyUndeclaredVariable
|
||||
// @phan-suppress-next-line PhanTypeMismatchReturnNullable Until phan can understand the switch
|
||||
return $result;
|
||||
}
|
||||
|
|
|
@ -476,6 +476,7 @@ class AbuseFilterParser extends AFPTransitionBase {
|
|||
*
|
||||
* @param AFPData &$result
|
||||
* @throws AFPUserVisibleException
|
||||
* @suppress PhanPossiblyUndeclaredVariable
|
||||
*/
|
||||
protected function doLevelConditions( &$result ) {
|
||||
if ( $this->mCur->type === AFPToken::TKEYWORD && $this->mCur->value === 'if' ) {
|
||||
|
|
Loading…
Reference in a new issue