I just install by composer require the package, but when i try to create the doc using artisan apidoc:generate, this error appears :
` TypeError
Argument 1 passed to Mpociot\ApiDoc\Tools\DocumentationConfig::__construct() must be of the type array, null given, called in /var/www/vhosts/xxxxxxxxxxxxxx/vendor/mpociot/laravel-apidoc-generator/src/Commands/GenerateDocumentation.php on line 61
at vendor/mpociot/laravel-apidoc-generator/src/Tools/DocumentationConfig.php:9
5| class DocumentationConfig
6| {
7| private $data;
8|
9| public function __construct(array $config = [])
10| {
11| $this->data = $config;
12| }
13|
I just install by composer require the package, but when i try to create the doc using artisan apidoc:generate, this error appears :
` TypeError
Argument 1 passed to Mpociot\ApiDoc\Tools\DocumentationConfig::__construct() must be of the type array, null given, called in /var/www/vhosts/xxxxxxxxxxxxxx/vendor/mpociot/laravel-apidoc-generator/src/Commands/GenerateDocumentation.php on line 61
at vendor/mpociot/laravel-apidoc-generator/src/Tools/DocumentationConfig.php:9 5| class DocumentationConfig 6| { 7| private $data; 8|
16 artisan:37 Illuminate\Foundation\Console\Kernel::handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))`
Note: apidoc.php was created in config directory, but nothing was changed in this file.