In T392516: [EventBus] Stabilize EventSerializer and related classes EventBus' reusable entity serializers were exposed as MediaWiki Service objects.
The CheckUser extension's SuggestedInvestigationsInstrumentationClient constructs a new UserEntitySerializer directly.
In T423952: Create mediawiki.user_change event stream, we are evolving the UserEntitySerializer constructor. CI is complaining with:
ArgumentCountError: Too few arguments to function MediaWiki\Extension\EventBus\Serializers\MediaWiki\UserEntitySerializer::__construct(), 3 passed in /workspace/src/extensions/CheckUser/src/SuggestedInvestigations/Instrumentation/SuggestedInvestigationsInstrumentationClient.php on line 86 and exactly 4 expected
The CheckUser code was committed after we merged the new EventBus MW Services and adapted CirrusSearch to use them. I'm not sure how we missed CheckUser!
This is blocking T423952.
Done is
- CheckUser uses EventBus.UserEntitySerializer MediaWiki Service instead of directly constructing instances.