首页 > 解决方案 > 函数 Illuminate\Support\Manager::createDriver() 的参数太少,通过了 0

问题描述

大家好...我是 php 的初学者 .... composer install 后我得到了那个错误

Symfony\Component\Debug\Exception\FatalThrowableError 类型错误:函数 Illuminate\Support\Manager::createDriver() 的参数太少,0 传入 C:\wamp\www\core\vendor\laravel\framework\src\Illuminate\ Support\Manager.php 位于第 88 行,预期为 1

protected function createDriver($driver)
{
    // We'll check to see if a creator method exists for the given driver. If not we
    // will check for a custom driver creator, which allows developers to create
    // drivers using their own customized driver creator Closure to create it.
    if (isset($this->customCreators[$driver])) {
        return $this->callCustomCreator($driver);
    } else {
        $method = 'create'.Str::studly($driver).'Driver';

        if (method_exists($this, $method)) {
            return $this->$method();
        }
    }
    throw new InvalidArgumentException("Driver [$driver] not supported.");
}

我该做什么?

标签: php

解决方案


推荐阅读