I want to be able to check if the callback is valid before I try to call it. Is it possible?
If I call call_user_func or call_user_func_array with something like array($this, 'methodThatDoesNotExist') PHP warns with [E_WARNING] call_user_func() expects parameter 1 to be a valid callback .
source share