Skip to content

Commit f343efa

Browse files
barryvdhpb30
andauthored
Pb30 version var rename (#1637)
* Update view "version" variable name to avoid potential conflicts * Remove version --------- Co-authored-by: pb30 <[email protected]>
1 parent 0fa0403 commit f343efa

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
- Fix type of hashed model property to `string`
5555

5656
### Changed
57+
- Update view "version" variable name to avoid potential conflicts
5758

5859
- Add support for EloquentBuilder generics introduced in Laravel 11.15.
5960
- Drop support for Laravel versions earlier than 11.15.

resources/views/helper.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
/**
1616
* A helper file for Laravel, to provide autocomplete information to your IDE
17-
* Generated for Laravel <?= $version ?>.
17+
* Generated for Laravel <?= app()->version() ?>.
1818
*
1919
* This file should not be included in your code, only analyzed by your IDE!
2020
*

src/Generator.php

-2
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ public function generate()
8484
->with('namespaces_by_alias_ns', $this->getAliasesByAliasNamespace())
8585
->with('real_time_facades', $this->getRealTimeFacades())
8686
->with('helpers', $this->helpers)
87-
->with('version', $app->version())
8887
->with('include_fluent', $this->config->get('ide-helper.include_fluent', true))
8988
->with('factories', $this->config->get('ide-helper.include_factory_builders') ? Factories::all() : [])
9089
->render();
@@ -111,7 +110,6 @@ public function generateEloquent()
111110
->with('namespaces_by_alias_ns', ['__root' => [$alias]])
112111
->with('real_time_facades', [])
113112
->with('helpers', '')
114-
->with('version', $app->version())
115113
->with('include_fluent', false)
116114
->with('factories', [])
117115
->render();

0 commit comments

Comments
 (0)