[BUG] \Guanguans\LaravelExceptionNotify\Commands\TestCommand 析构函数报错

Describe the bug

php --version

PHP 8.1.12 (cli) (built: Oct 30 2022 12:39:49) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.12, Copyright (c) Zend Technologies
    with Xdebug v3.1.6, Copyright (c) 2002-2022, by Derick Rethans
    with Zend OPcache v8.1.12, Copyright (c), by Zend Technologies
php artisan --version

Laravel Framework 10.18.0
"guanguans/laravel-exception-notify": "^3.2"

执行 console 相关命令时报错,即使执行 composer dump-auto -o 也报错,因为也会执行 artisan 相关命令

composer dump-auto -o


# ouput

PHP Fatal error:  Uncaught Error: Call to a member function newLine() on null in /project-laravel/vendor/guanguans/laravel-exception-notify/src/Commands/TestCommand.php:36
Stack trace:
#0 [internal function]: Guanguans\LaravelExceptionNotify\Commands\TestCommand->__destruct()
#1 {main}
  thrown in /Users/shuqingzai/Code/php-project/customeow-laravel/vendor/guanguans/laravel-exception-notify/src/Commands/TestCommand.php on line 36
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 255

To Reproduce Steps to reproduce the behavior:

  1. Go to '……'
  2. Click on '……'
  3. Scroll down to '……'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Add any other context about the problem here.