barryvdh / laravel-ide-helper

IDE Helper for Laravel
MIT License
14.17k stars 1.16k forks source link

Macro autocompletion for non static situations #1255

Open ArielMejiaDev opened 3 years ago

ArielMejiaDev commented 3 years ago

As #1254 and #1159 refer PHPStorm has no way to handle autocompletion for static generated macros in _ide_helper.php file

What I already see is that there is a package that handles this almost automatically by marking the macro as instantiated here the reference: https://github.com/KristofMorva/laravel-ide-macros#use-of-non-static-macros, it only needs to add the macro classes on a config file and it makes pretty much the same thing as ide_helper by creating a static method, but if it is marked as instatiated it generates it as a non static method.