Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

运行时的报错,关于RedisManager无法构造的问题 #6

Open
wiidz opened this issue Jun 25, 2019 · 0 comments
Open

运行时的报错,关于RedisManager无法构造的问题 #6

wiidz opened this issue Jun 25, 2019 · 0 comments

Comments

@wiidz
Copy link

wiidz commented Jun 25, 2019

控制台报错如下:

vbot.ERROR: Too few arguments to function Illuminate\Redis\RedisManager::__construct(), 2 passed in /www/wwwroot/bot.21b.cn/vendor/hanson/vbot/src/Foundation/ServiceProviders/CacheServiceProvider.php on line 31 and exactly 3 expected [] []
PHP Fatal error:  Uncaught TypeError: Argument 1 passed to Hanson\Vbot\Foundation\ExceptionHandler::report() must be an instance of Exception, instance of ArgumentCountError given, called in /www/wwwroot/bot.21b.cn/vendor/hanson/vbot/src/Foundation/ExceptionHandler.php on line 133 and defined in /www/wwwroot/bot.21b.cn/vendor/hanson/vbot/src/Foundation/ExceptionHandler.php:58

CacheServiceProvider.php Line 31如下:

return new RedisManager(array_get($config, 'client', 'predis'), $config);

RedisManager.php 构造方法如下:

    public function __construct($app, $driver, array $config)
    {
        $this->app = $app;
        $this->driver = $driver;
        $this->config = $config;
    }

请问,确定没错吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant