must be of the type array

Help for integrating the Laravel package
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!
mateusanjosv
Posts: 3
Joined: 20 Nov 2020, 12:39

must be of the type array

Post by mateusanjosv » 20 Nov 2020, 12:42

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>

User avatar
aimeos
Administrator
Posts: 7873
Joined: 01 Jan 1970, 00:00

Re: must be of the type array

Post by aimeos » 21 Nov 2020, 10:04

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, Image give us a star

mateusanjosv
Posts: 3
Joined: 20 Nov 2020, 12:39

Re: must be of the type array

Post by mateusanjosv » 21 Nov 2020, 20:38

solved, thanks

Post Reply