Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (13 sloc) 468 Bytes
<?php
ini_set('display_errors', false);
set_error_handler(function (int $level, string $message, string $file, int $line) {
if (error_reporting() === 0) {
return;
}
throw new ErrorException($message, 0, $level, $file, $line);
});
set_exception_handler(function (Throwable $e) {
var_dump($e->getMessage());
var_dump($e->getTraceAsString());
});
var_dump($array); // not existing variable
You can’t perform that action at this time.