laravel-ide-helper
laravel-ide-helper copied to clipboard
Update view "version" variable name to avoid potential conflicts
Summary
We inherited a number of projects that have a global version
variable shared with all views that is an array of things like asset versions, etc.
When running php artisan ide-helper:generate
it results in an error since $version
is used in this packages views.
Array to string conversion at vendor/barryvdh/laravel-ide-helper/resources/views/helper.php:17
This PR renames the variable to $laravel_version
to avoid conflicts since it may be a common global variable name.
Type of change
- [x] Misc. change (internal, infrastructure, maintenance, etc.)
Checklist
- [ ] Existing tests have been adapted and/or new tests have been added
- [x] Add a CHANGELOG.md entry
- [ ] Update the README.md
- [x] Code style has been fixed via
composer fix-style