please make use of our public api
OC_User::getUser(); -> \OCP\User::getUser();