diff --git a/System/Error/ErrorHandler.php b/System/Error/ErrorHandler.php index c56f4e22..7f388fd8 100644 --- a/System/Error/ErrorHandler.php +++ b/System/Error/ErrorHandler.php @@ -24,12 +24,10 @@ use Snowflake\Snowflake; class ErrorHandler extends Component implements ErrorInterface { - /** @var IFormatter $message */ - private $message = NULL; + /** @var null|IFormatter $message */ + private null|IFormatter $message = NULL; - public $action; - - public $category = 'app'; + public string $category = 'app'; /** * 错误处理注册