Skip to content

Commit

Permalink
Pb30 version var rename (#1637)
Browse files Browse the repository at this point in the history
* Update view "version" variable name to avoid potential conflicts

* Remove version

---------

Co-authored-by: pb30 <pb30@pb30.com>
  • Loading branch information
barryvdh and pb30 authored Dec 29, 2024
1 parent 0fa0403 commit f343efa
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
- Fix type of hashed model property to `string`

### Changed
- Update view "version" variable name to avoid potential conflicts

- Add support for EloquentBuilder generics introduced in Laravel 11.15.
- Drop support for Laravel versions earlier than 11.15.
Expand Down
2 changes: 1 addition & 1 deletion resources/views/helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

/**
* A helper file for Laravel, to provide autocomplete information to your IDE
* Generated for Laravel <?= $version ?>.
* Generated for Laravel <?= app()->version() ?>.
*
* This file should not be included in your code, only analyzed by your IDE!
*
Expand Down
2 changes: 0 additions & 2 deletions src/Generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ public function generate()
->with('namespaces_by_alias_ns', $this->getAliasesByAliasNamespace())
->with('real_time_facades', $this->getRealTimeFacades())
->with('helpers', $this->helpers)
->with('version', $app->version())
->with('include_fluent', $this->config->get('ide-helper.include_fluent', true))
->with('factories', $this->config->get('ide-helper.include_factory_builders') ? Factories::all() : [])
->render();
Expand All @@ -111,7 +110,6 @@ public function generateEloquent()
->with('namespaces_by_alias_ns', ['__root' => [$alias]])
->with('real_time_facades', [])
->with('helpers', '')
->with('version', $app->version())
->with('include_fluent', false)
->with('factories', [])
->render();
Expand Down

0 comments on commit f343efa

Please sign in to comment.