Answer the question
In order to leave comments, you need to log in
Why is Null returned?
the code itself:
public function add($name, $method)
{
$func = $this->{$name};
if(!isset($func))
{
$this->{$name} = $method;
}
return true;
}
$context->add("getUser", function () use ($vk) {
return $vk->api->request("users.get", [])[0]["first_name"];
});
Fatal error: Call to a member function add() on null in
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question