Due to a change in Composer 2.2 which deprecates using an indexed array in link setters, MediaWiki core now generates an exception from setProvides() here
- Update your composer version to at least 2.2.0
- Run a composer update
What happens?:
Script ComposerHookHandler::onPreUpdate handling the pre-update-cmd event terminated with an exception [ErrorException] Package::setProvides must be called with a map of lowercased package name => Link object, got a indexed array, this is deprecated and you should fix your usage.
What should have happened instead?:
Composer runs without error.
Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc:
This has been reproduced by several people on various recent versions of MediaWiki 1.35.5 to 1.37 and master.