Skip to content

TypeError argument passed must be type array null given #17

Description

@khagesh007

Faced this issue while running composer require leeovery/wordpress-to-laravel on last step when it says
Generateing Optimized autoload files

Detailed description

TypeError
Argument 3 passed to LeeOvery\WordpressToLaravel\WordpressToLaravel::__construct() must be of the type array, null given, call
ed in C:....\vendor\leeovery\wordpress-to-laravel\src\WordpressToLaravelServiceProvider.php on line 74

at C:....\vendor\leeovery\wordpress-to-laravel\src\WordpressToLaravel.php:80
76▕ * @PARAM FractalManager $fractalManager
77▕ * @PARAM GuzzleClient $client
78▕ * @PARAM array $config
79▕ */
➜ 80▕ public function __construct(FractalManager $fractalManager, GuzzleClient $client, array $config)
81▕ {
82▕ $this->fractalManager = $fractalManager;
83▕ $this->client = $client;
84▕ $this->config = $config;

It's a bug.

Context

I am trying to build a front website for my WordPress blog.

Your environment

  • php 7.4
  • windows 10
    *Localhost not published
  • Laravel 8.27 & 8.44

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions