php - Illuminate中的call_user_func出错
天蓬老师
天蓬老师 2017-04-11 09:53:17
0
1
253
/**
 * Get the current PDO connection.
 *
 * @return \PDO
 */
public function getPdo()
{
    if ($this->pdo instanceof Closure) {
        return $this->pdo = call_user_func($this->pdo);
    }

    return $this->pdo;
}


为什么call_user_func会出错呢?
天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

reply all(1)
伊谢尔伦

错误是什么?是不是缺少参数?

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!