SyntaxFix
Write A Post
Hire A Developer
Questions
To log the trace
$e = new Exception; error_log(var_export($e->getTraceAsString(), true));
Thanks @Tobiasz