-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error in ide-helper:generate #832
Comments
Also getting this error recently. I have Tried clearing all the caches etc, but no help. |
I had the same error. This is how I solved it.
That's it |
Your config was cached, you need to clear it: php artisan config:clear Configs usually should only be cached in production. |
$this->call('config:clear'); |
I would not expect a helper library to change the application state. In my opinion if someone decides to cache the config he/she should be the one who clears those cached values. |
Supporting the last comment. Also: ide-helper is meant to run in dev only and dev is not meant to be cached |
@barryvdh config caching in dev produces this problems and it's generally bad practice to do this, I vote for closing this issue :} (the readme doesn't mention this, I made myself a note to follow-up on this, but the issue isn't required for this) |
* readme: sublime command has been removed Was removed in #976 as it was already deprecated for 7 years. * readme: old link only redirects, use the destination link directly * readme: mention that the default _ide_helper.php name can be changed * readme: document `meta_filename` and hint it can be written into a special subdirectory * readme: remove hint about \Eloquent or `@mixin`, as the latter is automatically added nowadays * readme: update how the current phpdoc looks like * readme: document `write_model_magic_where` * readme: document `write_model_relation_count_properties` * readme: document `custom_db_types` * readme: clarify installation regarding auto-discovery vs. manual * readme: mention to avoid caching the config in dev Inspired by #832
* readme: sublime command has been removed Was removed in barryvdh/laravel-ide-helper#976 as it was already deprecated for 7 years. * readme: old link only redirects, use the destination link directly * readme: mention that the default _ide_helper.php name can be changed * readme: document `meta_filename` and hint it can be written into a special subdirectory * readme: remove hint about \Eloquent or `@mixin`, as the latter is automatically added nowadays * readme: update how the current phpdoc looks like * readme: document `write_model_magic_where` * readme: document `write_model_relation_count_properties` * readme: document `custom_db_types` * readme: clarify installation regarding auto-discovery vs. manual * readme: mention to avoid caching the config in dev Inspired by barryvdh/laravel-ide-helper#832
* readme: sublime command has been removed Was removed in barryvdh/laravel-ide-helper#976 as it was already deprecated for 7 years. * readme: old link only redirects, use the destination link directly * readme: mention that the default _ide_helper.php name can be changed * readme: document `meta_filename` and hint it can be written into a special subdirectory * readme: remove hint about \Eloquent or `@mixin`, as the latter is automatically added nowadays * readme: update how the current phpdoc looks like * readme: document `write_model_magic_where` * readme: document `write_model_relation_count_properties` * readme: document `custom_db_types` * readme: clarify installation regarding auto-discovery vs. manual * readme: mention to avoid caching the config in dev Inspired by barryvdh/laravel-ide-helper#832
* readme: sublime command has been removed Was removed in barryvdh/laravel-ide-helper#976 as it was already deprecated for 7 years. * readme: old link only redirects, use the destination link directly * readme: mention that the default _ide_helper.php name can be changed * readme: document `meta_filename` and hint it can be written into a special subdirectory * readme: remove hint about \Eloquent or `@mixin`, as the latter is automatically added nowadays * readme: update how the current phpdoc looks like * readme: document `write_model_magic_where` * readme: document `write_model_relation_count_properties` * readme: document `custom_db_types` * readme: clarify installation regarding auto-discovery vs. manual * readme: mention to avoid caching the config in dev Inspired by barryvdh/laravel-ide-helper#832
* readme: sublime command has been removed Was removed in barryvdh/laravel-ide-helper#976 as it was already deprecated for 7 years. * readme: old link only redirects, use the destination link directly * readme: mention that the default _ide_helper.php name can be changed * readme: document `meta_filename` and hint it can be written into a special subdirectory * readme: remove hint about \Eloquent or `@mixin`, as the latter is automatically added nowadays * readme: update how the current phpdoc looks like * readme: document `write_model_magic_where` * readme: document `write_model_relation_count_properties` * readme: document `custom_db_types` * readme: clarify installation regarding auto-discovery vs. manual * readme: mention to avoid caching the config in dev Inspired by barryvdh/laravel-ide-helper#832
* readme: sublime command has been removed Was removed in barryvdh/laravel-ide-helper#976 as it was already deprecated for 7 years. * readme: old link only redirects, use the destination link directly * readme: mention that the default _ide_helper.php name can be changed * readme: document `meta_filename` and hint it can be written into a special subdirectory * readme: remove hint about \Eloquent or `@mixin`, as the latter is automatically added nowadays * readme: update how the current phpdoc looks like * readme: document `write_model_magic_where` * readme: document `write_model_relation_count_properties` * readme: document `custom_db_types` * readme: clarify installation regarding auto-discovery vs. manual * readme: mention to avoid caching the config in dev Inspired by barryvdh/laravel-ide-helper#832
hi
i install ide hleper in laravel 6 and see this error
when run
php artisan ide-helper:generate
`> @php artisan ide-helper:generate
ErrorException : array_merge(): Argument #2 is not an array
at C:\Users\behro\Documents\website\hamaiesh elmi\laravel-backend\vendor\barryvdh\laravel-ide-helper\src\Generator.php:53
49|
50| // Find the drivers to add to the extra/interfaces
51| $this->detectDrivers();
52|
Exception trace:
1 array_merge([])
C:\Users\behro\Documents\website\hamaiesh elmi\laravel-backend\vendor\barryvdh\laravel-ide-helper\src\Generator.php:53
2 Barryvdh\LaravelIdeHelper\Generator::__construct(Object(Illuminate\Config\Repository), Object(Illuminate\View\Factory), Object(Illuminate\Console\OutputStyle), "")
C:\Users\behro\Documents\website\hamaiesh elmi\laravel-backend\vendor\barryvdh\laravel-ide-helper\src\Console\GeneratorCommand.php:112
`
The text was updated successfully, but these errors were encountered: