laravel-log-to-db icon indicating copy to clipboard operation
laravel-log-to-db copied to clipboard

Error on Lumen 9.1.2 and PHP 8.1

Open iMiodrag opened this issue 2 years ago • 0 comments

Lumen v9.1.2 PHP v8.1

Hi there, I am getting the following error when trying to register the service provider in app.php So after adding: $app->register(\danielme85\LaravelLogToDB\ServiceProvider::class); to app.php here is the eror that I am getting:

www-data@c2bfa1bae2d0:~/html$ vendor/bin/phpunit 
PHPUnit 9.5.25 #StandWithUkraine

.PHP Fatal error:  Cannot redeclare danielme85\LaravelLogToDB\config_path() (previously declared in /app/vendor/danielme85/laravel-log-to-db/src/ServiceProvider.php:31) in /app/vendor/danielme85/laravel-log-to-db/src/ServiceProvider.php on line 31
PHP Stack trace:
PHP   1. {main}() /app/vendor/bin/phpunit:0
PHP   2. include() /app/vendor/bin/phpunit:123
PHP   3. PHPUnit\TextUI\Command::main($exit = *uninitialized*) /app/vendor/phpunit/phpunit/phpunit:98
PHP   4. PHPUnit\TextUI\Command->run($argv = [0 => 'vendor/bin/phpunit'], $exit = TRUE) /app/vendor/phpunit/phpunit/src/TextUI/Command.php:97

iMiodrag avatar Oct 13 '22 14:10 iMiodrag