webman-admin 安装后到填写管理员信息处报错
Fatal error: Uncaught Error: Cannot use a scalar value as an array in D:\phpstudy_pro\WWW\webman\vendor\workerman\webman-framework\src\Config.php:126
Stack trace:
#0 D:\phpstudy_pro\WWW\webman\vendor\workerman\webman-framework\src\Config.php(74): Webman\Config::formatConfig()
#1 D:\phpstudy_pro\WWW\webman\vendor\workerman\webman-framework\src\support\App.php(146): Webman\Config::load()
#2 D:\phpstudy_pro\WWW\webman\vendor\workerman\webman-framework\src\support\App.php(37): support\App::loadAllConfig()
#3 D:\phpstudy_pro\WWW\webman\start.php(4): support\App::run()
#4 {main}
thrown in D:\phpstudy_pro\WWW\webman\vendor\workerman\webman-framework\src\Config.php on line 126
见图
win10,Workerman version:4.1.13 PHP version:8.0.2
贴下 plugin/admin/config/database.php 的内容
<?php
return [
'default' => 'mysql',
'connections' => [
'mysql' => [
'driver' => 'mysql',
'host' => '127.0.0.1',
'port' => '3306',
'database' => 'webman_admin',
'username' => 'root',
'password' => '123456',
'charset' => 'utf8mb4',
'collation' => 'utf8mb4_general_ci',
'prefix' => '',
'strict' => true,
'engine' => null,
],
],
];
应该是有其他地方配置了database.php,里面格式是错误的