kevinkhill / lavacharts

Lavacharts is a graphing / charting library for PHP 5.4+ that wraps Google's Javascript Chart API.
http://lavacharts.com
Other
619 stars 142 forks source link

while installing on ide-helper:generate an error occurs #336

Closed ccplatz closed 3 years ago

ccplatz commented 3 years ago

Hi,

thanks to you for providing Lavacharts! I want to use charts in my first Laravel project, so I decided to try some libraries. During installation process via composer I get an error while generating the ide-helper file.

It would be nice, if you could help to find out how I can fix the problem. Thanks in advance and happy Easter! 🐰

What Version?

Lavacharts: * 3.1.14 Laravel: v8.35.1 php: 8.0.0 ide-helper: 2.9.3

Issue

I got an error during installation via composer ob my Laravel 8 app. On generating the ide-helper file I got this:

Khill\Lavacharts\Lavacharts::__construct(): Argument #1 ($options) must be of type array, null given, called in C:\xampp\htdocs\headache\vendor\khill\lavacharts\src\Laravel\LavachartsServiceProvider.php on line 65

at C:\xampp\htdocs\headache\vendor\khill\lavacharts\src\Lavacharts.php:75 71β–• 72β–• /* 73β–• Lavacharts constructor. 74β–• */ ➜ 75β–• public function __construct(array $options = []) 76β–• { 77β–• if ( ! $this->usingComposer()) { 78β–• require_once(DIR.'/Support/Psr4Autoloader.php'); 79β–•

1 C:\xampp\htdocs\headache\vendor\khill\lavacharts\src\Laravel\LavachartsServiceProvider.php:65 Khill\Lavacharts\Lavacharts::__construct()

2 C:\xampp\htdocs\headache\vendor\laravel\framework\src\Illuminate\Container\Container.php:829 Khill\Lavacharts\Laravel\LavachartsServiceProvider::Khill\Lavacharts\Laravel{closure}(Object(Illuminate\Foundation\Application), [])

ccplatz commented 3 years ago

problem is solved