Do some code quality check and fix #126

This commit is contained in:
crazywhalecc
2023-08-20 19:51:45 +08:00
committed by Jerry Ma
parent 9c57ed6439
commit c8fa767576
104 changed files with 1040 additions and 785 deletions

View File

@@ -6,9 +6,9 @@ namespace SPC\exception;
class ExceptionHandler
{
protected $whoops;
protected mixed $whoops;
private static $obj;
private static ?ExceptionHandler $obj = null;
private function __construct()
{
@@ -32,14 +32,6 @@ class ExceptionHandler
return self::$obj;
}
public function getWhoops()
{
return $this->whoops;
}
/**
* 处理异常
*/
public function handle(\Throwable $e): void
{
if (is_null($this->whoops)) {