Revert "改名"

This reverts commit fdf58326
This commit is contained in:
2022-02-10 11:37:54 +08:00
parent 4d6f7d1d13
commit ca274a3910
+1 -8
View File
@@ -36,13 +36,8 @@ class ErrorHandler extends Component implements ErrorInterface
*/
public function register()
{
// ini_set('display_errors', '1');
set_exception_handler([$this, 'exceptionHandler']);
if (defined('HHVM_VERSION')) {
set_error_handler([$this, 'errorHandler']);
} else {
set_error_handler([$this, 'errorHandler']);
}
set_error_handler([$this, 'errorHandler']);
register_shutdown_function([$this, 'shutdown']);
}
@@ -118,8 +113,6 @@ class ErrorHandler extends Component implements ErrorInterface
{
$path = ['file' => $file, 'line' => $line];
var_dump(func_get_args());
$data = Json::to($code, $this->category . ': ' . $message, $path);
write($data, $this->category);