laravel-ide-helper
laravel-ide-helper copied to clipboard
Bug with Lumen 6 and Ide-Helper 2.8
$ php artisan ide-helper:generate
In IdeHelperServiceProvider.php line 119:
Class 'Illuminate\Foundation\Application' not found
Duplicate of https://github.com/barryvdh/laravel-ide-helper/issues/1042 and https://github.com/barryvdh/laravel-ide-helper/issues/1064 and fixed with https://github.com/barryvdh/laravel-ide-helper/pull/1043 , though no release was made yet.
@barryvdh do you think you can make a new release?
@andrew-svirin until then, you can use 2.8-dev as a workaround
@mfn thanks for reply, will do.
Any news on release? Currently using 2.8.x-dev as workaround.
We would need @barryvdh to cut a new release, friendly ping!
Ok, this is still broken and I've worked out why.
Barryvdh\LaravelIdeHelper\Console\MetaCommand registers a throw against the autoloader, and then tries to unregister it by assuming it is the last closure registered. Thus, if anything else registers against the autoloader before the unregister is called, the wrong closure gets unregistered and the call to class_exists will attempt to build class from registered autoloaders which in turn calls the throw.





Hey 👋🏼 whilst integration in Lumen might still work, due to decline in usage of Lumen and better alternatives like Laravel Octane, Lumen is not officially supported anymore (the state of affairs where never really great, to begin with)