Wikimedia

Stop using deprecated ApiBase::dieUsage() in MediaWiki's Linter extension

MediaWiki's Linter extension currently calls the deprecated ApiBase::dieUsage() function in ApiRecordLint.php. It should be swapped for dieWithError(), which will require creating localization messages. An example change that you can use for reference is https://gerrit.wikimedia.org/r/#/c/321448/ except that we don't need to check for is_callable, we can just replace the function usage directly.

You are expected to provide a patch in Wikimedia Gerrit. See https://www.mediawiki.org/wiki/Gerrit/Tutorial for how to set up Git and Gerrit.

Task tags

  • deprecation
  • php

Students who completed this task

Haikal Izzuddin

Task type

  • code Code
close

2017