mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Linter
synced 2024-09-23 18:29:58 +00:00
DWIM in CategoryManager
If `"has-name": false` is set, then CategoryManager should interpret that as false, and not treat the existence of the key as making it true. Same with "parser-migration". Change-Id: I6b8d5b23fb33707b7596d9172da26fd84d652da8
This commit is contained in:
parent
96f8a08777
commit
fcb9eba542
|
@ -64,10 +64,10 @@ class CategoryManager {
|
|||
if ( $info['enabled'] ) {
|
||||
$this->categories[$info['priority']][] = $name;
|
||||
}
|
||||
if ( isset( $info['parser-migration'] ) ) {
|
||||
if ( $info['parser-migration'] ?? false ) {
|
||||
$this->parserMigrationCategories[$name] = true;
|
||||
}
|
||||
if ( isset( $info['has-name'] ) ) {
|
||||
if ( $info['has-name'] ?? false ) {
|
||||
$this->hasNameParam[$name] = true;
|
||||
}
|
||||
if ( isset( $info['dbid'] ) ) {
|
||||
|
|
Loading…
Reference in a new issue