From f3f9125312853223abeb9dbc431ba84a605ecf29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1t=C3=A9=20Szab=C3=B3?= Date: Fri, 4 Oct 2024 18:26:42 +0200 Subject: 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 --- includes/MainConfigSchema.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes/MainConfigSchema.php') 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', ]; -- cgit v1.2.3