/**
* 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会出错呢?
/**
* 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会出错呢?
2 回答1.3k 阅读✓ 已解决
1 回答975 阅读✓ 已解决
2 回答843 阅读✓ 已解决
1 回答1k 阅读✓ 已解决
2 回答899 阅读
1 回答886 阅读
1 回答817 阅读
错误是什么?是不是缺少参数?