Please, tell me more. Why not? What to use instead? @This, that and the other
Topic on Manual talk:$wgUser
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.