Laravel-apidoc-generator: TypeError on apidoc:generate

Created on 29 Jun 2020  路  2Comments  路  Source: mpociot/laravel-apidoc-generator

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\ApiDocTools\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|

  +15 vendor frames

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.

Most helpful comment

Seems like the same problem here #685
It worked after running php artisan config:clear

All 2 comments

Seems like the same problem here #685
It worked after running php artisan config:clear

Seems like the same problem here #685
It worked after running php artisan config:clear

it worked

Was this page helpful?
0 / 5 - 0 ratings

Related issues

wyq2214368 picture wyq2214368  路  3Comments

herpaderpaldent picture herpaderpaldent  路  7Comments

chinloyal picture chinloyal  路  8Comments

saidatom picture saidatom  路  7Comments

Jaspur picture Jaspur  路  8Comments