diff --git a/CHANGELOG.md b/CHANGELOG.md index 900a8e004..52fd83386 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. diff --git a/resources/views/helper.php b/resources/views/helper.php index 7db3875fc..f713632ee 100644 --- a/resources/views/helper.php +++ b/resources/views/helper.php @@ -14,7 +14,7 @@ /** * A helper file for Laravel, to provide autocomplete information to your IDE - * Generated for Laravel . + * Generated for Laravel version() ?>. * * This file should not be included in your code, only analyzed by your IDE! * diff --git a/src/Generator.php b/src/Generator.php index 332b9a4c6..f12f4e5fd 100644 --- a/src/Generator.php +++ b/src/Generator.php @@ -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(); @@ -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();