mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-03 14:55:39 +08:00
Do some code quality check and fix #126
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user