While trying to seed some image suggestions locally I stumbled on this error.
Steps to replicate the issue (include links if applicable):
➜ w git:(master) php maintenance/run.php ./extensions/CirrusSearch/maintenance/UpdateWeightedTags.php --tagType 'recommendation.image' --page Nanocomposite --verbose
What happens?:
An error is thrown, the script cannot be used without tagName option as it was doing prior to rECIRd7c02d73ad0637c7dd4f5f06abc6b4ee542b39e5
[865069a1605512609323e693] [no req] TypeError: array_flip(): Argument #1 ($array) must be of type array, null given
Backtrace:
from /Users/sergio/src/mediawiki/w/extensions/CirrusSearch/maintenance/UpdateWeightedTags.php(70)
#0 /Users/sergio/src/mediawiki/w/extensions/CirrusSearch/maintenance/UpdateWeightedTags.php(70): array_flip(null)
#1 /Users/sergio/src/mediawiki/w/maintenance/includes/MaintenanceRunner.php(694): CirrusSearch\Maintenance\UpdateWeightedTags->execute()
#2 /Users/sergio/src/mediawiki/w/maintenance/run.php(51): MediaWiki\Maintenance\MaintenanceRunner->run()
#3 {main}What should have happened instead?:
The script should run without a tagName option?