laravel-Meta icon indicating copy to clipboard operation
laravel-Meta copied to clipboard

Incompatible with ide-helper

Open f-liva opened this issue 9 years ago • 2 comments
trafficstars

The type hinting used in the Meta::__construct gets the package incompatible with barryvdh/laravel-ide-helper, which passes a null value to the constructor and throw an error.

php artisan ide-helper:generate

[Symfony\Component\Debug\Exception\FatalThrowableError] Type error: Argument 1 passed to Eusonlito\LaravelMeta\Meta::__construct() must be of the type array, null given, called in D:\Progetti\studioelps.com \StudioElps\vendor\eusonlito\laravel-meta\src\Eusonlito\LaravelMeta\MetaSer viceProvider.php on line 35

f-liva avatar Apr 26 '16 16:04 f-liva

Ok, I will check it ASAP :+1:

eusonlito avatar Apr 26 '16 22:04 eusonlito

Removing the array type hint in the first parameter of the constructor solves the problem.

Il mer 27 apr 2016, 00:42 Lito [email protected] ha scritto:

Ok, I will check it ASAP [image: :+1:]

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/eusonlito/laravel-Meta/issues/7#issuecomment-214909502

f-liva avatar Apr 27 '16 06:04 f-liva