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
Faced this issue while running
composer require leeovery/wordpress-to-laravelon last step when it saysGenerateing 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
*Localhost not published