Page MenuHomePhabricator

Hard-deprecate User::newFromName/newFromId/newFromActorId/newFromIdentity/newFromAnyId/newFromConfirmationCode (and remove a release later)
Open, Needs TriagePublic

Description

The following functions are deprecated and should be replaced

  • User::newFromName
  • User::newFromId
  • User::newFromActorId
  • User::newFromIdentity
  • User::newFromAnyId
  • User::newFromConfirmationCode

After that the function should be hard-deprecated and removed

Sometimes it could be better to just replace with MediaWiki\User\UserIdentity when a fully User object is not needed (via UserIdentityLookup)

CodeSearch: https://codesearch.wmcloud.org/deployed/?q=%5CbUser%5Cs*%3A%3A%5Cs*(newFromName%7CnewFromId%7CnewFromActorId%7CnewFromIdentity%7CnewFromAnyId%7CnewFromConfirmationCode)%5Cb&i=nope&files=&excludeFiles=&repos=