diff options
author | Máté Szabó <mszabo@wikimedia.org> | 2024-10-04 18:26:42 +0200 |
---|---|---|
committer | Máté Szabó <mszabo@wikimedia.org> | 2024-11-01 14:36:40 +0100 |
commit | f3f9125312853223abeb9dbc431ba84a605ecf29 (patch) | |
tree | 04b81af7b868f6270b9ae7f093c23aade2ec3439 /includes/MainConfigSchema.php | |
parent | f0dfd5e727ea5ea7b2ced56ecab973923e0d86bd (diff) | |
download | mediawikicore-f3f9125312853223abeb9dbc431ba84a605ecf29.tar.gz mediawikicore-f3f9125312853223abeb9dbc431ba84a605ecf29.zip |
recentchanges: Make CategoryMembershipChange constructor args required
Why:
- The `revision` and `forImport` constructor parameters of
CategoryMembershipChange are marked as optional, but the only non-test
usage of this constructor provides them both.[1]
What:
- Make both parameters required and remove tests related to
instantiating a CategoryMembershipChange without a RevisionRecord.
[1] https://codesearch.wmcloud.org/search/?q=CategoryMembershipChange%5C%28&files=&excludeFiles=&repos=
Bug: T373318
Change-Id: Ic240edea0bb9a27cdfa2d810284644c1eef51895
Diffstat (limited to 'includes/MainConfigSchema.php')
-rw-r--r-- | includes/MainConfigSchema.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/MainConfigSchema.php b/includes/MainConfigSchema.php index 24c8d314ea25..3f8a509bf25a 100644 --- a/includes/MainConfigSchema.php +++ b/includes/MainConfigSchema.php @@ -7429,7 +7429,7 @@ class MainConfigSchema { 'msg:proxyblocker', // For $wgProxyList and Special:Blockme (removed in 1.22) 'msg:sorbs', // For $wgEnableDnsBlacklist etc. 'msg:spambot_username', // Used by cleanupSpam.php - 'msg:autochange-username', // Used by anon category RC entries (parser functions, Lua & purges) + 'msg:autochange-username', // Used by anon category RC entries (removed in 1.44) ], 'type' => 'list', ]; |