I am facing this error when running my code I can't understand the error of that thing, any advices ?
Strict Standards: Only variables should be passed by reference in /home/kea/newalarab/comments/comments/src/Comments/Comments.php on line 552
Strict Standards: Only variables should be passed by reference in /home/kea/newalarab/comments/comments/src/Comments/Comments.php on line 563
public function authUser($attribute = null)
{
return reset($this['events']->fire('auth.user', $attribute)); //line 552
}
public function adminCheck()
{
return reset($this['events']->fire('admin.check')) === true; //line 563
}
'auth.user'
and'admin.check'
into variables and pass these variables to function fire(), because fire() is probably declared asfire(&$par, $attr)
– Agnius Vasiliauskas