mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-09-24 10:48:17 +00:00
Make phan not complain about Throttle::throttleIdentifier
UserEditTracker::getUserEditCount now allows anonymous users, but it returns null and phan is aware of this. Suppress this warning until at least 1.37 is required. Change-Id: I9962abe08fa31d55421d8bdda23ea0a1c0471a86
This commit is contained in:
parent
f0136ad0ee
commit
d7ec0b992c
|
@ -203,6 +203,7 @@ class Throttle extends Consequence implements ConsequencesDisablerConsequence {
|
|||
// @codeCoverageIgnoreEnd
|
||||
}
|
||||
|
||||
// @phan-suppress-next-line PhanTypeMismatchReturnNullable Simplify 'editcount' in 1.37+
|
||||
return $identifier;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue