Topic on Manual talk:$wgUser

In most cases $wgUser should not be used in new code.

2
TespSam (talkcontribs)
This, that and the other (talkcontribs)

Virtually all hooks now give you a User object as a parameter. If the hook you require does not have this parameter, and you think it should, then consider filing a Phabricator task.

Reply to "In most cases $wgUser should not be used in new code."