must be of the type array
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
-
- Posts: 3
- Joined: 20 Nov 2020, 12:39
must be of the type array
Good morning!
I'm breaking my head. I will be grateful for your help
Windows
Laravel: 8
Aimeos: "aimeos/aimeos-laravel": "~2020.10.x-dev",
Php: 7.3
Error: https://prnt.sc/vmtdv9
Argument 2 passed to Aimeos\MW\Config\Decorator\Memory::__construct() must be of the type array, null given, called in C:\Users\conta\Desktop\PARANHOS\laravel-auth\vendor\aimeos\aimeos-laravel\src\Aimeos\Shop\Base\Config.php on line 69
at C:\Users\conta\Desktop\PARANHOS\laravel-auth\vendor\aimeos\aimeos-core\lib\mwlib\src\MW\Config\Decorator\Memory.php:36
32▕ *
33▕ * @param \Aimeos\MW\Config\Iface $object Config object or decorator
34▕ * @param array $config Pre-cached non-shared configuration
35▕ */
➜ 36▕ public function __construct( \Aimeos\MW\Config\Iface $object, array $config = [] )
37▕ {
38▕ parent::__construct( $object );
39▕
40▕ $this->config = $config;
1 C:\Users\conta\Desktop\PARANHOS\laravel-auth\vendor\aimeos\aimeos-laravel\src\Aimeos\Shop\Base\Config.php:69
Aimeos\MW\Config\Decorator\Memory::__construct(Object(Aimeos\MW\Config\PHPArray))
2 C:\Users\conta\Desktop\PARANHOS\laravel-auth\vendor\aimeos\aimeos-laravel\src\Aimeos\Shop\Base\Context.php:76
Aimeos\Shop\Base\Config::get("command")
PS C:\Users\conta\Desktop\PARANHOS\laravel-auth>
I'm breaking my head. I will be grateful for your help
Windows
Laravel: 8
Aimeos: "aimeos/aimeos-laravel": "~2020.10.x-dev",
Php: 7.3
Error: https://prnt.sc/vmtdv9
Argument 2 passed to Aimeos\MW\Config\Decorator\Memory::__construct() must be of the type array, null given, called in C:\Users\conta\Desktop\PARANHOS\laravel-auth\vendor\aimeos\aimeos-laravel\src\Aimeos\Shop\Base\Config.php on line 69
at C:\Users\conta\Desktop\PARANHOS\laravel-auth\vendor\aimeos\aimeos-core\lib\mwlib\src\MW\Config\Decorator\Memory.php:36
32▕ *
33▕ * @param \Aimeos\MW\Config\Iface $object Config object or decorator
34▕ * @param array $config Pre-cached non-shared configuration
35▕ */
➜ 36▕ public function __construct( \Aimeos\MW\Config\Iface $object, array $config = [] )
37▕ {
38▕ parent::__construct( $object );
39▕
40▕ $this->config = $config;
1 C:\Users\conta\Desktop\PARANHOS\laravel-auth\vendor\aimeos\aimeos-laravel\src\Aimeos\Shop\Base\Config.php:69
Aimeos\MW\Config\Decorator\Memory::__construct(Object(Aimeos\MW\Config\PHPArray))
2 C:\Users\conta\Desktop\PARANHOS\laravel-auth\vendor\aimeos\aimeos-laravel\src\Aimeos\Shop\Base\Context.php:76
Aimeos\Shop\Base\Config::get("command")
PS C:\Users\conta\Desktop\PARANHOS\laravel-auth>
Re: must be of the type array
Look at the ./config/shop.php and the config files in your own extension. In one of your own config files, maybe no array is returned.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star