knutsford Posted April 19, 2020 Share Posted April 19, 2020 I am getting set_exception_handler() expects the argument (static BugReporter::exception_handler) to be a valid callback in .... The line is set_exception_handler(array('static BugReporter', 'exception_handler')); BugReporter is a class - eg class BugReporter { } exception_handler is a function withing the class I have no idea what is wrong. I haven't come across set_exception_handler() before Can anyone see what is wrong - Thanks Quote Link to comment https://forums.phpfreaks.com/topic/310612-set_exception_handler-expects-the-argument-static-bugreporterexception_handler-to-be-a-valid-callback/ Share on other sites More sharing options...
requinix Posted April 19, 2020 Share Posted April 19, 2020 callables Quote Link to comment https://forums.phpfreaks.com/topic/310612-set_exception_handler-expects-the-argument-static-bugreporterexception_handler-to-be-a-valid-callback/#findComment-1577013 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.