Hi,
I have some problems when test my Yii2 open source project for community:
The problems is when the test finished an error message appear after all related to yii2-debug:
[backend\tests]: tests from /usr/share/nginx/html/backend
Backend\tests.functional Tests (1) -------------------------
✔ LoginCest: Login user (8.83s)
------------------------------------------------------------
Backend\tests.unit Tests (0) -------------------------------
------------------------------------------------------------
Time: 17.34 seconds, Memory: 36.00MB
OK (25 tests, 61 assertions)
PHP Fatal error: Uncaught Error: Call to a member function getRequest() on null in /usr/share/nginx/html/vendor/yiisoft/yii2-debug/src/panels/RequestPanel.php:59
Stack trace:
#0 /usr/share/nginx/html/vendor/yiisoft/yii2-debug/src/LogTarget.php(61): yii\debug\panels\RequestPanel->save()
#1 /usr/share/nginx/html/vendor/yiisoft/yii2-debug/src/LogTarget.php(136): yii\debug\LogTarget->export()
#2 /usr/share/nginx/html/vendor/yiisoft/yii2/log/Dispatcher.php(189): yii\debug\LogTarget->collect(Array, true)
#3 /usr/share/nginx/html/vendor/yiisoft/yii2/log/Logger.php(177): yii\log\Dispatcher->dispatch(Array, true)
#4 [internal function]: yii\log\Logger->flush(true)
#5 {main}
thrown in /usr/share/nginx/html/vendor/yiisoft/yii2-debug/src/panels/RequestPanel.php on line 59
make: *** [test] Error 255
Can anyone help me with this?
On travis the same error happen and have a full log:
https://travis-ci.com/prsolucoes/yii2-app-advanced/jobs/225024359#L5422
Thanks.