【发布时间】:2017-12-28 12:32:11
【问题描述】:
我在运行我的代码时遇到了这个错误 我无法理解那个东西的错误,有什么建议吗?
严格标准:只有变量应该在 /home/kea/newalarab/cmets/cmets/src/Comments/Comments.php 第 552 行通过引用传递
严格的标准:只有变量应该在 /home/kea/newalarab/cmets/cmets/src/Comments/Comments.php 第 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'和'admin.check'放入变量中,并将这些变量传递给函数fire(),因为fire()很可能被声明为fire(&$par, $attr)
标签: php