Closed dryabov closed 10 months ago
Hello,
It it possible to give a hint in the JED Checker e.g. $user = Factory::getUser() --> $user = $this->getCurrentUser()
Regards, Peter
Not all classes have the getCurrentUser()
method, and in other cases something like Factory::getApplication()->getIdentity()
should be used instead. So, it depends on the context, and JEDChecker is unable to provide the best solution.
Thank you! Indeed: Factory::getApplication()->getIdentity() is in my case the right solution.
see https://manual.joomla.org/migrations/44-50/