Page MenuHomePhabricator

Fix unconditional use of deprecated code in Translate (2021-10)
Open, MediumPublic

Description

List of deprecated methods, functions and constants in use:

  • 33 Wikipage::factory (1.36, use WikiPageFactory::newFromTitle instead)
  • 31 ApiBase::PARAM_DFLT (1.35, use the equivalent ParamValidator or TypeDef constants instead)
  • 27 JobQueueGroup::singleton (1.37, Use JobQueueGroupFactory::makeJobQueueGroup)
  • 22 wfGetCache (1.32, use ObjectCache::getInstance() instead)
  • 21 Language::factory (1.35, use LanguageFactory)
  • 16 Hooks::run (1.35, Use HookContainer::run() instead)
  • 11 Language::fetchLanguageNames (1.34, use LanguageNameUtils::getLanguageNames)
  • 8 TTMServer::factory (???, Use Services::getInstance()->getTtmServerFactory()->create())
  • 7 Language::fetchLanguageName (1.34, use LanguageNameUtils::getLanguageName)
  • 6 wfWikiID (1.35, Use WikiMap::getCurrentWikiId())
  • 5 Http::get (1.34, use HttpRequestFactory::get())
  • 4 Language::isKnownLanguageTag (1.34, use LanguageNameUtils)
  • 2 Language::getFallbacksFor (1.35, use LanguageFallback::getAll)
  • 2 wfShellExec (1.30, use class MediaWiki\Shell\Shell)
  • 1 wfReadOnly (1.38, use ReadOnlyMode::isReadOnly())

Undisambiguated:

8 WEAK WARNING Method 'setContent' is deprecated 
8 WEAK WARNING Method 'newFromName' is deprecated 
8 WEAK WARNING Method 'newFromId' is deprecated 
8 WEAK WARNING Method 'getEditToken' is deprecated 
7 WEAK WARNING Method 'getOption' is deprecated 
6 WEAK WARNING Method 'matchEditToken' is deprecated 
3 WEAK WARNING Method 'insertIntoJobQueue' is deprecated 
3 WEAK WARNING Method 'getTitle' is deprecated 
3 WEAK WARNING Method 'getErrorsArray' is deprecated 
2 WEAK WARNING Method 'primary' is deprecated 
2 WEAK WARNING Method 'newFromIdentity' is deprecated 
2 WEAK WARNING Method 'isBlocked' is deprecated 
2 WEAK WARNING Method 'doDeleteArticleReal' is deprecated 
1 WEAK WARNING Method 'resetIdByNameCache' is deprecated 
1 WEAK WARNING Method 'newFromID' is deprecated 
1 WEAK WARNING Method 'firstCallInit' is deprecated 
1 WEAK WARNING Method 'doUserEditContent' is deprecated 
1 WEAK WARNING Method 'doEditContent' is deprecated 
1 WEAK WARNING Method 'commentBlock' is deprecated 
1 WEAK WARNING Method 'checkPermissions' is deprecated 
1 WEAK WARNING Constant 'STRICT_FALLBACKS' is deprecated 
1 WEAK WARNING Constant 'PARAM_RANGE_ENFORCE' is deprecated 
1 WEAK WARNING Constant 'ALL' is deprecated

Event Timeline

Change 729980 had a related patch set uploaded (by Nikerabbit; author: Nikerabbit):

[mediawiki/extensions/Translate@master] Fix use of deprecated Http::get

https://gerrit.wikimedia.org/r/729980

Change 729980 merged by jenkins-bot:

[mediawiki/extensions/Translate@master] Fix use of deprecated Http::get

https://gerrit.wikimedia.org/r/729980

Change 735667 had a related patch set uploaded (by Zabe; author: Zabe):

[mediawiki/extensions/Translate@master] Replace usage of deprecated global function wfReadOnly()

https://gerrit.wikimedia.org/r/735667

Change 735667 merged by jenkins-bot:

[mediawiki/extensions/Translate@master] Replace usage of deprecated global function wfReadOnly()

https://gerrit.wikimedia.org/r/735667

Change 666354 had a related patch set uploaded (by Nikerabbit; author: Nikerabbit):

[mediawiki/extensions/Translate@master] Replace TTMServer::factory and ::primary with factory methods

https://gerrit.wikimedia.org/r/666354

Change 757098 had a related patch set uploaded (by Nikerabbit; author: Umherirrender):

[mediawiki/extensions/Translate@master] Replace deprecated JobQueueGroup::singleton()

https://gerrit.wikimedia.org/r/757098

Change 757098 merged by jenkins-bot:

[mediawiki/extensions/Translate@master] Replace deprecated JobQueueGroup::singleton()

https://gerrit.wikimedia.org/r/757098

Change 766568 had a related patch set uploaded (by Wangombe; author: Wangombe):

[mediawiki/extensions/Translate@master] Replace deprecated wfShellExec method

https://gerrit.wikimedia.org/r/766568

Change 766568 merged by jenkins-bot:

[mediawiki/extensions/Translate@master] Replace deprecated wfShellExec() method

https://gerrit.wikimedia.org/r/766568

Change 768957 had a related patch set uploaded (by Wangombe; author: Wangombe):

[mediawiki/extensions/Translate@master] Replace use of Language::fetchLanguageNames

https://gerrit.wikimedia.org/r/768957

Change 768957 merged by jenkins-bot:

[mediawiki/extensions/Translate@master] Replace use of Language::fetchLanguageNames

https://gerrit.wikimedia.org/r/768957

Tacsipacsi added a subscriber: Tacsipacsi.

@Nikerabbit How did you create the list? Especially for the “Undisambiguated” part would it be useful to know if they’re still there. For example, I think 1 WEAK WARNING Constant 'ALL' is deprecated was Language::ALL at rETRA scripts/createCheckIndex.php:45 (at 59b8708e9), which was replaced in 00ae8b646398 today—but without being able to reproduce the list, I can’t say it for sure.

And could you regenerate the list? I use, and want to continue using, open-source software (e.g. VS Code and Vim) as much as possible, so I don’t have PHPStorm installed. VS Code also reports problems, but I couldn’t get it handle MediaWiki codebase correctly, so it reports a lot of errors in places where there aren’t any, making it hardly usable, especially to generate such lists.

Assigning to myself to regenerate the list.

Full report
PhpStorm inspection report:
Inspection tree:
'Inspections Results' project   363 weak warnings 
Weak Warning   363 weak warnings 
PHP group   363 weak warnings 
General group   363 weak warnings 
Deprecated inspection   363 weak warnings 
file ApiAggregateGroups.php   9 weak warnings 
WEAK WARNING Method 'insertIntoJobQueue' is deprecated 
WEAK WARNING Constant 'PARAM_TYPE' is deprecated 
WEAK WARNING Constant 'PARAM_REQUIRED' is deprecated 
WEAK WARNING Constant 'PARAM_TYPE' is deprecated 
WEAK WARNING Constant 'PARAM_TYPE' is deprecated 
WEAK WARNING Constant 'PARAM_TYPE' is deprecated 
WEAK WARNING Constant 'PARAM_TYPE' is deprecated 
WEAK WARNING Constant 'PARAM_TYPE' is deprecated 
WEAK WARNING Constant 'PARAM_REQUIRED' is deprecated 
file ApiGroupReview.php   9 weak warnings 
WEAK WARNING Method 'run' is deprecated 
WEAK WARNING Constant 'PARAM_TYPE' is deprecated 
WEAK WARNING Constant 'PARAM_REQUIRED' is deprecated 
WEAK WARNING Constant 'PARAM_TYPE' is deprecated 
WEAK WARNING Constant 'PARAM_DFLT' is deprecated 
WEAK WARNING Constant 'PARAM_TYPE' is deprecated 
WEAK WARNING Constant 'PARAM_REQUIRED' is deprecated 
WEAK WARNING Constant 'PARAM_TYPE' is deprecated 
WEAK WARNING Constant 'PARAM_REQUIRED' is deprecated 
file ApiManageMessageGroups.php   13 weak warnings 
WEAK WARNING Constant 'PARAM_TYPE' is deprecated 
WEAK WARNING Constant 'PARAM_REQUIRED' is deprecated 
WEAK WARNING Constant 'PARAM_TYPE' is deprecated 
WEAK WARNING Constant 'PARAM_REQUIRED' is deprecated 
WEAK WARNING Constant 'PARAM_TYPE' is deprecated 
WEAK WARNING Constant 'PARAM_REQUIRED' is deprecated 
WEAK WARNING Constant 'PARAM_TYPE' is deprecated 
WEAK WARNING Constant 'PARAM_ISMULTI' is deprecated 
WEAK WARNING Constant 'PARAM_REQUIRED' is deprecated 
WEAK WARNING Constant 'PARAM_TYPE' is deprecated 
WEAK WARNING Constant 'PARAM_DFLT' is deprecated 
WEAK WARNING Constant 'PARAM_TYPE' is deprecated 
WEAK WARNING Constant 'PARAM_REQUIRED' is deprecated 
file ApiManageMessageGroupsTest.php   2 weak warnings 
WEAK WARNING Method 'factory' is deprecated 
WEAK WARNING Method 'doUserEditContent' is deprecated 
file ApiQueryManageMessageGroups.php   6 weak warnings 
WEAK WARNING Constant 'PARAM_TYPE' is deprecated 
WEAK WARNING Constant 'PARAM_REQUIRED' is deprecated 
WEAK WARNING Constant 'PARAM_TYPE' is deprecated 
WEAK WARNING Constant 'PARAM_REQUIRED' is deprecated 
WEAK WARNING Constant 'PARAM_TYPE' is deprecated 
WEAK WARNING Constant 'PARAM_DFLT' is deprecated 
file ApiQueryMessageCollection.php   20 weak warnings 
WEAK WARNING Method 'fetchLanguageName' is deprecated 
WEAK WARNING Method 'fetchLanguageName' is deprecated 
WEAK WARNING Method 'fetchLanguageName' is deprecated 
WEAK WARNING Constant 'PARAM_TYPE' is deprecated 
WEAK WARNING Constant 'PARAM_REQUIRED' is deprecated 
WEAK WARNING Constant 'PARAM_TYPE' is deprecated 
WEAK WARNING Constant 'PARAM_DFLT' is deprecated 
WEAK WARNING Constant 'PARAM_DFLT' is deprecated 
WEAK WARNING Constant 'PARAM_TYPE' is deprecated 
WEAK WARNING Constant 'PARAM_MIN' is deprecated 
WEAK WARNING Constant 'PARAM_MAX' is deprecated 
WEAK WARNING Constant 'PARAM_MAX2' is deprecated 
WEAK WARNING Constant 'PARAM_DFLT' is deprecated 
WEAK WARNING Constant 'PARAM_TYPE' is deprecated 
WEAK WARNING Constant 'PARAM_TYPE' is deprecated 
WEAK WARNING Constant 'PARAM_DFLT' is deprecated 
WEAK WARNING Constant 'PARAM_ISMULTI' is deprecated 
WEAK WARNING Constant 'PARAM_TYPE' is deprecated 
WEAK WARNING Constant 'PARAM_DFLT' is deprecated 
WEAK WARNING Constant 'PARAM_ISMULTI' is deprecated 
file ApiQueryMessageGroups.php   19 weak warnings 
WEAK WARNING Method 'run' is deprecated 
WEAK WARNING Constant 'PARAM_TYPE' is deprecated 
WEAK WARNING Constant 'PARAM_DFLT' is deprecated 
WEAK WARNING Constant 'PARAM_TYPE' is deprecated 
WEAK WARNING Constant 'PARAM_DFLT' is deprecated 
WEAK WARNING Constant 'PARAM_ISMULTI' is deprecated 
WEAK WARNING Constant 'PARAM_TYPE' is deprecated 
WEAK WARNING Constant 'PARAM_DFLT' is deprecated 
WEAK WARNING Constant 'PARAM_TYPE' is deprecated 
WEAK WARNING Constant 'PARAM_DFLT' is deprecated 
WEAK WARNING Constant 'PARAM_TYPE' is deprecated 
WEAK WARNING Constant 'PARAM_DFLT' is deprecated 
WEAK WARNING Constant 'PARAM_ISMULTI' is deprecated 
WEAK WARNING Constant 'PARAM_TYPE' is deprecated 
WEAK WARNING Constant 'PARAM_DFLT' is deprecated 
WEAK WARNING Constant 'PARAM_TYPE' is deprecated 
WEAK WARNING Constant 'PARAM_DFLT' is deprecated 
WEAK WARNING Method 'run' is deprecated 
WEAK WARNING Method 'run' is deprecated 
file ApiQueryMessageGroupStats.php   2 weak warnings 
WEAK WARNING Constant 'PARAM_TYPE' is deprecated 
WEAK WARNING Constant 'PARAM_REQUIRED' is deprecated 
file ApiQueryMessageTranslations.php   4 weak warnings 
WEAK WARNING Constant 'PARAM_TYPE' is deprecated 
WEAK WARNING Constant 'PARAM_REQUIRED' is deprecated 
WEAK WARNING Constant 'PARAM_DFLT' is deprecated 
WEAK WARNING Constant 'PARAM_TYPE' is deprecated 
file ApiSearchTranslations.php   25 weak warnings 
WEAK WARNING Method 'factory' is deprecated 
WEAK WARNING Method 'factory' is deprecated 
WEAK WARNING Constant 'PARAM_TYPE' is deprecated 
WEAK WARNING Constant 'PARAM_TYPE' is deprecated 
WEAK WARNING Constant 'PARAM_REQUIRED' is deprecated 
WEAK WARNING Constant 'PARAM_TYPE' is deprecated 
WEAK WARNING Constant 'PARAM_DFLT' is deprecated 
WEAK WARNING Constant 'PARAM_TYPE' is deprecated 
WEAK WARNING Constant 'PARAM_DFLT' is deprecated 
WEAK WARNING Constant 'PARAM_TYPE' is deprecated 
WEAK WARNING Constant 'PARAM_DFLT' is deprecated 
WEAK WARNING Constant 'PARAM_TYPE' is deprecated 
WEAK WARNING Constant 'PARAM_DFLT' is deprecated 
WEAK WARNING Constant 'PARAM_TYPE' is deprecated 
WEAK WARNING Constant 'PARAM_DFLT' is deprecated 
WEAK WARNING Constant 'PARAM_TYPE' is deprecated 
WEAK WARNING Constant 'PARAM_DFLT' is deprecated 
WEAK WARNING Constant 'PARAM_TYPE' is deprecated 
WEAK WARNING Constant 'PARAM_DFLT' is deprecated 
WEAK WARNING Constant 'PARAM_DFLT' is deprecated 
WEAK WARNING Constant 'PARAM_TYPE' is deprecated 
WEAK WARNING Constant 'PARAM_MIN' is deprecated 
WEAK WARNING Constant 'PARAM_MAX' is deprecated 
WEAK WARNING Constant 'PARAM_MAX2' is deprecated 
WEAK WARNING Constant 'PARAM_DFLT' is deprecated 
file ApiStatsQuery.php   2 weak warnings 
WEAK WARNING Constant 'PARAM_DFLT' is deprecated 
WEAK WARNING Constant 'PARAM_TYPE' is deprecated 
file ApiTranslateSandbox.php   16 weak warnings 
WEAK WARNING Method 'newFromName' is deprecated 
WEAK WARNING Method 'newFromId' is deprecated 
WEAK WARNING Method 'newFromId' is deprecated 
WEAK WARNING Method 'newFromId' is deprecated 
WEAK WARNING Method 'factory' is deprecated 
WEAK WARNING Method 'doUserEditContent' is deprecated 
WEAK WARNING Constant 'PARAM_TYPE' is deprecated 
WEAK WARNING Constant 'PARAM_REQUIRED' is deprecated 
WEAK WARNING Constant 'PARAM_TYPE' is deprecated 
WEAK WARNING Constant 'PARAM_DFLT' is deprecated 
WEAK WARNING Constant 'PARAM_ISMULTI' is deprecated 
WEAK WARNING Constant 'PARAM_TYPE' is deprecated 
WEAK WARNING Constant 'PARAM_REQUIRED' is deprecated 
WEAK WARNING Constant 'PARAM_TYPE' is deprecated 
WEAK WARNING Constant 'PARAM_TYPE' is deprecated 
WEAK WARNING Constant 'PARAM_TYPE' is deprecated 
file ApiTranslationCheck.php   4 weak warnings 
WEAK WARNING Constant 'PARAM_TYPE' is deprecated 
WEAK WARNING Constant 'PARAM_REQUIRED' is deprecated 
WEAK WARNING Constant 'PARAM_TYPE' is deprecated 
WEAK WARNING Constant 'PARAM_REQUIRED' is deprecated 
file ApiTranslationReview.php   5 weak warnings 
WEAK WARNING Method 'run' is deprecated 
WEAK WARNING Constant 'PARAM_TYPE' is deprecated 
WEAK WARNING Constant 'PARAM_REQUIRED' is deprecated 
WEAK WARNING Constant 'PARAM_TYPE' is deprecated 
WEAK WARNING Constant 'PARAM_REQUIRED' is deprecated 
file ApiTranslationReviewTest.php   7 weak warnings 
WEAK WARNING Method 'singleton' is deprecated 
WEAK WARNING Method 'factory' is deprecated 
WEAK WARNING Method 'doUserEditContent' is deprecated 
WEAK WARNING Method 'factory' is deprecated 
WEAK WARNING Method 'doUserEditContent' is deprecated 
WEAK WARNING Method 'factory' is deprecated 
WEAK WARNING Method 'doUserEditContent' is deprecated 
file ApiTranslationStash.php   9 weak warnings 
WEAK WARNING Method 'newFromName' is deprecated 
WEAK WARNING Constant 'PARAM_TYPE' is deprecated 
WEAK WARNING Constant 'PARAM_REQUIRED' is deprecated 
WEAK WARNING Constant 'PARAM_TYPE' is deprecated 
WEAK WARNING Constant 'PARAM_TYPE' is deprecated 
WEAK WARNING Constant 'PARAM_TYPE' is deprecated 
WEAK WARNING Constant 'PARAM_TYPE' is deprecated 
WEAK WARNING Constant 'PARAM_REQUIRED' is deprecated 
WEAK WARNING Constant 'PARAM_TYPE' is deprecated 
file ApiTTMServer.php   9 weak warnings 
WEAK WARNING Method 'factory' is deprecated 
WEAK WARNING Constant 'PARAM_TYPE' is deprecated 
WEAK WARNING Constant 'PARAM_TYPE' is deprecated 
WEAK WARNING Constant 'PARAM_REQUIRED' is deprecated 
WEAK WARNING Constant 'PARAM_TYPE' is deprecated 
WEAK WARNING Constant 'PARAM_REQUIRED' is deprecated 
WEAK WARNING Constant 'PARAM_TYPE' is deprecated 
WEAK WARNING Constant 'PARAM_REQUIRED' is deprecated 
WEAK WARNING Constant 'PARAM_DFLT' is deprecated 
file characterEditStats.php   1 weak warning 
WEAK WARNING Method 'fetchLanguageName' is deprecated 
file createMessageIndex.php   1 weak warning 
WEAK WARNING Method 'singleton' is deprecated 
file CurrentTranslationAid.php   1 weak warning 
WEAK WARNING Method 'run' is deprecated 
file DatabaseTTMServer.php   1 weak warning 
WEAK WARNING Method 'factory' is deprecated 
file DeleteEqualTranslationsMaintenanceScript.php   2 weak warnings 
WEAK WARNING Method 'factory' is deprecated 
WEAK WARNING Method 'doDeleteArticleReal' is deprecated 
file DeleteTranslatablePageSpecialPage.php   2 weak warnings 
WEAK WARNING Method 'matchEditToken' is deprecated 
WEAK WARNING Method 'insertIntoJobQueue' is deprecated 
file ElasticSearchTTMServerTest.php   2 weak warnings 
WEAK WARNING Method 'factory' is deprecated 
WEAK WARNING Method 'factory' is deprecated 
file fallbacks-graph.php   2 weak warnings 
WEAK WARNING Method 'getFallbacksFor' is deprecated 
WEAK WARNING Constant 'STRICT_FALLBACKS' is deprecated 
file FuzzyTranslationsMaintenanceScript.php   1 weak warning 
WEAK WARNING Method 'doUserEditContent' is deprecated 
file GettextFFS.php   3 weak warnings 
WEAK WARNING Method 'factory' is deprecated 
WEAK WARNING Method 'run' is deprecated 
WEAK WARNING Method 'factory' is deprecated 
file ImportTranslationsSpecialPage.php   2 weak warnings 
WEAK WARNING Method 'matchEditToken' is deprecated 
WEAK WARNING Method 'getEditToken' is deprecated 
file ManageGroupsSpecialPage.php   7 weak warnings 
WEAK WARNING Method 'matchEditToken' is deprecated 
WEAK WARNING Method 'getEditToken' is deprecated 
WEAK WARNING Method 'setContent' is deprecated 
WEAK WARNING Method 'setContent' is deprecated 
WEAK WARNING Method 'setContent' is deprecated 
WEAK WARNING Method 'setContent' is deprecated 
WEAK WARNING Method 'singleton' is deprecated 
file ManageGroupSynchronizationCacheActionApi.php   7 weak warnings 
WEAK WARNING Constant 'PARAM_TYPE' is deprecated 
WEAK WARNING Constant 'PARAM_ISMULTI' is deprecated 
WEAK WARNING Constant 'PARAM_REQUIRED' is deprecated 
WEAK WARNING Constant 'PARAM_TYPE' is deprecated 
WEAK WARNING Constant 'PARAM_REQUIRED' is deprecated 
WEAK WARNING Constant 'PARAM_TYPE' is deprecated 
WEAK WARNING Constant 'PARAM_REQUIRED' is deprecated 
file MediaWikiPluralValidator.php   2 weak warnings 
WEAK WARNING Method 'factory' is deprecated 
WEAK WARNING Method 'firstCallInit' is deprecated 
file MessageBundleMessageGroup.php   1 weak warning 
WEAK WARNING Method 'run' is deprecated 
file MessageCollectionTest.php   3 weak warnings 
WEAK WARNING Method 'singleton' is deprecated 
WEAK WARNING Method 'factory' is deprecated 
WEAK WARNING Method 'doUserEditContent' is deprecated 
file MessageGroupBase.php   1 weak warning 
WEAK WARNING Method 'run' is deprecated 
file MessageGroupOld.php   1 weak warning 
WEAK WARNING Method 'run' is deprecated 
file MessageGroups.php   2 weak warnings 
WEAK WARNING Method 'run' is deprecated 
WEAK WARNING Method 'run' is deprecated 
file MessageGroupStatesUpdaterJobTest.php   6 weak warnings 
WEAK WARNING Method 'factory' is deprecated 
WEAK WARNING Method 'doUserEditContent' is deprecated 
WEAK WARNING Method 'factory' is deprecated 
WEAK WARNING Method 'doUserEditContent' is deprecated 
WEAK WARNING Method 'factory' is deprecated 
WEAK WARNING Method 'doUserEditContent' is deprecated 
file MessageGroupsTest.php   1 weak warning 
WEAK WARNING Method 'singleton' is deprecated 
file MessageHandle.php   2 weak warnings 
WEAK WARNING Method 'singleton' is deprecated 
WEAK WARNING Method 'singleton' is deprecated 
file MessageIndex.php   2 weak warnings 
WEAK WARNING Method 'singleton' is deprecated 
WEAK WARNING Method 'run' is deprecated 
file MessageIndexRebuildJob.php   1 weak warning 
WEAK WARNING Method 'singleton' is deprecated 
file MessageIndexRebuildJobTest.php   2 weak warnings 
WEAK WARNING Method 'singleton' is deprecated 
WEAK WARNING Method 'insertIntoJobQueue' is deprecated 
file MessageIndexTest.php   2 weak warnings 
WEAK WARNING Method 'singleton' is deprecated 
WEAK WARNING Method 'singleton' is deprecated 
file MessageUpdateJob.php   4 weak warnings 
WEAK WARNING Method 'factory' is deprecated 
WEAK WARNING Method 'doUserEditContent' is deprecated 
WEAK WARNING Method 'factory' is deprecated 
WEAK WARNING Method 'doUserEditContent' is deprecated 
file MessageWebImporter.php   5 weak warnings 
WEAK WARNING Method 'getEditToken' is deprecated 
WEAK WARNING Method 'matchEditToken' is deprecated 
WEAK WARNING Method 'setContent' is deprecated 
WEAK WARNING Method 'factory' is deprecated 
WEAK WARNING Method 'doUserEditContent' is deprecated 
file MessageWebImporterTest.php   3 weak warnings 
WEAK WARNING Method 'singleton' is deprecated 
WEAK WARNING Method 'factory' is deprecated 
WEAK WARNING Method 'factory' is deprecated 
file MoveTranslatableBundleSpecialPage.php   1 weak warning 
WEAK WARNING Method 'matchEditToken' is deprecated 
file PageMoveLogger.php   1 weak warning 
WEAK WARNING Method 'getErrorsArray' is deprecated 
file PageTranslationHooks.php   8 weak warnings 
WEAK WARNING Method 'getTitle' is deprecated 
WEAK WARNING Method 'factory' is deprecated 
WEAK WARNING Method 'factory' is deprecated 
WEAK WARNING Method 'factory' is deprecated 
WEAK WARNING Method 'getTitle' is deprecated 
WEAK WARNING Method 'factory' is deprecated 
WEAK WARNING Method 'fetchLanguageName' is deprecated 
WEAK WARNING Method 'newFromIdentity' is deprecated 
file PageTranslationHooksTest.php   5 weak warnings 
WEAK WARNING Method 'singleton' is deprecated 
WEAK WARNING Method 'factory' is deprecated 
WEAK WARNING Method 'doUserEditContent' is deprecated 
WEAK WARNING Method 'getErrorsArray' is deprecated 
WEAK WARNING Method 'newFromID' is deprecated 
file PageTranslationLogFormatter.php   1 weak warning 
WEAK WARNING Method 'commentBlock' is deprecated 
file PageTranslationParserTest.php   2 weak warnings 
WEAK WARNING Method 'factory' is deprecated 
WEAK WARNING Method 'factory' is deprecated 
file PageTranslationSpecialPage.php   11 weak warnings 
WEAK WARNING Method 'matchEditToken' is deprecated 
WEAK WARNING Method 'factory' is deprecated 
WEAK WARNING Method 'doUserEditContent' is deprecated 
WEAK WARNING Method 'getEditToken' is deprecated 
WEAK WARNING Method 'getEditToken' is deprecated 
WEAK WARNING Method 'getEditToken' is deprecated 
WEAK WARNING Method 'setContent' is deprecated 
WEAK WARNING Method 'setContent' is deprecated 
WEAK WARNING Method 'factory' is deprecated 
WEAK WARNING Method 'doUserEditContent' is deprecated 
WEAK WARNING Method 'singleton' is deprecated 
file PageTranslationTaggingTest.php   9 weak warnings 
WEAK WARNING Method 'singleton' is deprecated 
WEAK WARNING Method 'factory' is deprecated 
WEAK WARNING Method 'doUserEditContent' is deprecated 
WEAK WARNING Method 'factory' is deprecated 
WEAK WARNING Method 'doUserEditContent' is deprecated 
WEAK WARNING Method 'factory' is deprecated 
WEAK WARNING Method 'doUserEditContent' is deprecated 
WEAK WARNING Method 'factory' is deprecated 
WEAK WARNING Method 'doUserEditContent' is deprecated 
file plural-comparison.php   2 weak warnings 
WEAK WARNING Method 'getFallbacksFor' is deprecated 
WEAK WARNING Method 'factory' is deprecated 
file poimport.php   3 weak warnings 
WEAK WARNING Method 'newFromName' is deprecated 
WEAK WARNING Method 'factory' is deprecated 
WEAK WARNING Method 'doUserEditContent' is deprecated 
file QueryTranslationStatsActionApi.php   15 weak warnings 
WEAK WARNING Constant 'PARAM_TYPE' is deprecated 
WEAK WARNING Constant 'PARAM_REQUIRED' is deprecated 
WEAK WARNING Constant 'PARAM_TYPE' is deprecated 
WEAK WARNING Constant 'PARAM_REQUIRED' is deprecated 
WEAK WARNING Constant 'PARAM_DFLT' is deprecated 
WEAK WARNING Constant 'PARAM_MIN' is deprecated 
WEAK WARNING Constant 'PARAM_MAX' is deprecated 
WEAK WARNING Constant 'PARAM_RANGE_ENFORCE' is deprecated 
WEAK WARNING Constant 'PARAM_TYPE' is deprecated 
WEAK WARNING Constant 'PARAM_ISMULTI' is deprecated 
WEAK WARNING Constant 'PARAM_TYPE' is deprecated 
WEAK WARNING Constant 'PARAM_ISMULTI' is deprecated 
WEAK WARNING Constant 'PARAM_TYPE' is deprecated 
WEAK WARNING Constant 'PARAM_DFLT' is deprecated 
WEAK WARNING Constant 'PARAM_TYPE' is deprecated 
file SandboxMessageGroup.php   1 weak warning 
WEAK WARNING Method 'singleton' is deprecated 
file SearchTranslationsSpecialPage.php   1 weak warning 
WEAK WARNING Method 'factory' is deprecated 
file ServiceWiring.php   2 weak warnings 
WEAK WARNING Method 'factory' is deprecated 
WEAK WARNING Method 'singleton' is deprecated 
file TranslatableBundleMoveJob.php   1 weak warning 
WEAK WARNING Method 'newFromName' is deprecated 
file TranslatableBundleMover.php   2 weak warnings 
WEAK WARNING Method 'checkPermissions' is deprecated 
WEAK WARNING Method 'singleton' is deprecated 
file TranslatablePage.php   2 weak warnings 
WEAK WARNING Method 'factory' is deprecated 
WEAK WARNING Method 'factory' is deprecated 
file TranslatablePageTestTrait.php   2 weak warnings 
WEAK WARNING Method 'factory' is deprecated 
WEAK WARNING Method 'doUserEditContent' is deprecated 
file TranslateDeleteJob.php   3 weak warnings 
WEAK WARNING Method 'doDeleteArticleReal' is deprecated 
WEAK WARNING Method 'getErrorsArray' is deprecated 
WEAK WARNING Method 'newFromName' is deprecated 
file TranslateEditAddons.php   2 weak warnings 
WEAK WARNING Method 'newFromIdentity' is deprecated 
WEAK WARNING Method 'run' is deprecated 
file TranslateHooks.php   5 weak warnings 
WEAK WARNING Method 'primary' is deprecated 
WEAK WARNING Method 'getTitle' is deprecated 
WEAK WARNING Method 'setCategoryLinks' is deprecated 
WEAK WARNING Method 'getTitle' is deprecated 
WEAK WARNING Method 'isKnownLanguageTag' is deprecated 
file TranslateHooksTest.php   7 weak warnings 
WEAK WARNING Method 'singleton' is deprecated 
WEAK WARNING Method 'factory' is deprecated 
WEAK WARNING Method 'doUserEditContent' is deprecated 
WEAK WARNING Method 'factory' is deprecated 
WEAK WARNING Method 'doUserEditContent' is deprecated 
WEAK WARNING Method 'factory' is deprecated 
WEAK WARNING Method 'doUserEditContent' is deprecated 
file TranslateLogFormatter.php   1 weak warning 
WEAK WARNING Method 'newFromId' is deprecated 
file TranslateRenderJob.php   3 weak warnings 
WEAK WARNING Method 'factory' is deprecated 
WEAK WARNING Method 'doUserEditContent' is deprecated 
WEAK WARNING Method 'newFromName' is deprecated 
file TranslateSandbox.php   1 weak warning 
WEAK WARNING Method 'newFromName' is deprecated 
file TranslateSandboxEmailJob.php   1 weak warning 
WEAK WARNING Method 'newFromId' is deprecated 
file TranslateSpecialPage.php   2 weak warnings 
WEAK WARNING Method 'run' is deprecated 
WEAK WARNING Method 'isKnownLanguageTag' is deprecated 
file TranslateUtils.php   3 weak warnings 
WEAK WARNING Method 'run' is deprecated 
WEAK WARNING Method 'singleton' is deprecated 
WEAK WARNING Method 'singleton' is deprecated 
file TranslationAidDataProviderTest.php   1 weak warning 
WEAK WARNING Method 'singleton' is deprecated 
file TranslationAidsActionApi.php   6 weak warnings 
WEAK WARNING Constant 'PARAM_TYPE' is deprecated 
WEAK WARNING Constant 'PARAM_REQUIRED' is deprecated 
WEAK WARNING Constant 'PARAM_TYPE' is deprecated 
WEAK WARNING Constant 'PARAM_DFLT' is deprecated 
WEAK WARNING Constant 'PARAM_TYPE' is deprecated 
WEAK WARNING Constant 'PARAM_ISMULTI' is deprecated 
file TranslationFuzzyUpdaterTest.php   8 weak warnings 
WEAK WARNING Method 'singleton' is deprecated 
WEAK WARNING Method 'factory' is deprecated 
WEAK WARNING Method 'doUserEditContent' is deprecated 
WEAK WARNING Method 'doUserEditContent' is deprecated 
WEAK WARNING Method 'doUserEditContent' is deprecated 
WEAK WARNING Method 'doUserEditContent' is deprecated 
WEAK WARNING Method 'factory' is deprecated 
WEAK WARNING Method 'doUserEditContent' is deprecated 
file TranslationPageTest.php   2 weak warnings 
WEAK WARNING Method 'factory' is deprecated 
WEAK WARNING Method 'factory' is deprecated 
file TranslationStashSpecialPage.php   3 weak warnings 
WEAK WARNING Method 'factory' is deprecated 
WEAK WARNING Method 'factory' is deprecated 
WEAK WARNING Method 'factory' is deprecated 
file TranslationStashStorageTest.php   3 weak warnings 
WEAK WARNING Method 'newFromId' is deprecated 
WEAK WARNING Method 'newFromId' is deprecated 
WEAK WARNING Method 'newFromId' is deprecated 
file TranslationsUpdateJob.php   1 weak warning 
WEAK WARNING Method 'factory' is deprecated 
file ttmserver-export.php   1 weak warning 
WEAK WARNING Method 'factory' is deprecated 
file TTMServerMessageUpdateJob.php   2 weak warnings 
WEAK WARNING Method 'factory' is deprecated 
WEAK WARNING Method 'factory' is deprecated 
file TuxMessageTable.php   4 weak warnings 
WEAK WARNING Method 'isKnownLanguageTag' is deprecated 
WEAK WARNING Method 'run' is deprecated 
WEAK WARNING Method 'factory' is deprecated 
WEAK WARNING Method 'factory' is deprecated 
file UpdatedDefinitionAid.php   1 weak warning 
WEAK WARNING Method 'setContent' is deprecated 
file ValidationRunnerTest.php   1 weak warning 
WEAK WARNING Method 'singleton' is deprecated 
file WikiPageMessageGroup.php   1 weak warning 
WEAK WARNING Method 'fetchLanguageName' is deprecated 
file WorkflowStatesMessageGroup.php   1 weak warning 
WEAK WARNING Method 'doUserEditContent' is deprecated

Summary:

78 Constant 'PARAM_TYPE' is deprecated
61 Method 'factory' is deprecated
33 Constant 'PARAM_REQUIRED' is deprecated
32 Method 'doUserEditContent' is deprecated
31 Constant 'PARAM_DFLT' is deprecated
25 Method 'singleton' is deprecated
17 Method 'run' is deprecated
10 Constant 'PARAM_ISMULTI' is deprecated
 8 Method 'setContent' is deprecated
 8 Method 'newFromId' is deprecated
 7 Method 'newFromName' is deprecated
 6 Method 'matchEditToken' is deprecated
 6 Method 'getEditToken' is deprecated
 6 Method 'fetchLanguageName' is deprecated
 4 Method 'getTitle' is deprecated
 3 Method 'isKnownLanguageTag' is deprecated
 3 Method 'insertIntoJobQueue' is deprecated
 3 Method 'getErrorsArray' is deprecated
 3 Constant 'PARAM_MIN' is deprecated
 3 Constant 'PARAM_MAX' is deprecated
 2 Method 'newFromIdentity' is deprecated
 2 Method 'getFallbacksFor' is deprecated
 2 Method 'doDeleteArticleReal' is deprecated
 2 Constant 'PARAM_MAX2' is deprecated
 1 Method 'setCategoryLinks' is deprecated
 1 Method 'primary' is deprecated
 1 Method 'newFromID' is deprecated
 1 Method 'firstCallInit' is deprecated
 1 Method 'commentBlock' is deprecated
 1 Method 'checkPermissions' is deprecated
 1 Constant 'STRICT_FALLBACKS' is deprecated
 1 Constant 'PARAM_RANGE_ENFORCE' is deprecated

Change 666354 abandoned by Nikerabbit:

[mediawiki/extensions/Translate@master] Replace TTMServer::factory and ::primary with factory methods

Reason:

Stale, will be redone later, hopefully

https://gerrit.wikimedia.org/r/666354