我有一个protected属性的方法
并且这个类我添加了__call 方法,好像这个方法不太管用
public function __call($name, $arguments)
{
// TODO: Implement __call() method.
$this->return_data(400, 'serve error');
}通过链接访问时报错如下:
Trying to invoke protected method app\api\controller\Index::create_user() from scope ReflectionMethod