laravel-ide-helper icon indicating copy to clipboard operation
laravel-ide-helper copied to clipboard

Update view "version" variable name to avoid potential conflicts

Open pb30 opened this issue 2 months ago • 1 comments

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

pb30 avatar Jun 20 '24 05:06 pb30