[BUG] \Guanguans\LaravelExceptionNotify\Commands\TestCommand 析构函数报错
shuqingzai opened this issue · comments
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:
- Go to '……'
- Click on '……'
- Scroll down to '……'
- 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.
@shuqingzai 请尝试更新到最新版本 3.2.2 看看。
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
@shuqingzai Please try to update to the latest version 3.2.2 to see.
@shuqingzai 请尝试更新到最新版本 3.2.2 看看。
@guanguans
报错是没报错了,但为什么要在析构函数中写??每次运行 php artisan
相关命令就弹出不相关的提示语??
php artisan
![image](https://user-images.githubusercontent.com/44406033/260296243-855768a5-bfc9-4e54-9402-0b3490700243.png)
@shuqingzai 我也发现这个问题了。稍等我修复一下。
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
@shuqingzai I also found this problem. Let me fix it later.
@shuqingzai 更新到 3.2.3 试试看看。
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
@shuqingzai update to 3.2.3 and try it out.
@shuqingzai 更新到 3.2.3 试试看看。
似乎可以了 @guanguans
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
@shuqingzai update to 3.2.3 and try it out.
Seems to work @guanguans