mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Linter
synced 2024-09-23 10:21:52 +00:00
Hooks.php: Check for non-array $tags
Bug: T302918 Change-Id: I96fdbbc443025d9461dc168e58164004a0f8d7ed
This commit is contained in:
parent
5b154ffb67
commit
b08fd17186
|
@ -146,6 +146,12 @@ class Hooks {
|
|||
UserIdentity $user,
|
||||
&$tags
|
||||
) {
|
||||
// This is just a stop-gap to deal with callers that aren't complying
|
||||
// with the advertised hook signature.
|
||||
if ( !is_array( $tags ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (
|
||||
in_array( "mw-blank", $tags ) ||
|
||||
( in_array( "mw-contentmodelchange", $tags ) &&
|
||||
|
|
Loading…
Reference in a new issue