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)