PHP 7.1 throws a warning for TranslateToolbox::toolboxAllTranslations(), hence migrate to new hook

This task is about MediaWiki's Translate extension which shows in PHP 7.1:

PHP Warning: Parameter 1 to TranslateToolbox::toolboxAllTranslations() expected to be a reference, value given in /var/www/html/includes/Hooks.php on line 186

To reproduce:

  1. Install MediaWiki
  2. Make sure that you are on PHP 7.1
  3. Install Translate
  4. Check the Error log

The code should be migrated to the BaseTemplateToolbox hook.

Task tags

  • hooks
  • php

Students who completed this task


Task type

  • code Code
  • done_all Quality Assurance