laravel-ide-helper
laravel-ide-helper copied to clipboard
ReflectionException in Alias::getMacroFunction
Versions:
- ide-helper Version: v3.0.0
- Laravel Version: v11.7.0
- PHP Version: 8.3.6
Description:
Exception throw in generate cli:
> post-update-cmd: @php artisan ide-helper:generate
ReflectionException
Function () does not exist
at vendor/barryvdh/laravel-ide-helper/src/Alias.php:414
https://github.com/barryvdh/laravel-ide-helper/blob/6338abb2d7cbefc58c1ac4adc5f6824b5d0c7324/src/Alias.php#L414
Steps To Reproduce:
- run
php artisan ide-helper:generate
The error have been there since v2.13.0, laravel v10.20.0. I can't seem to find the code that causes this yet. Manually adding try-catch in the parent block helps https://github.com/barryvdh/laravel-ide-helper/blob/6338abb2d7cbefc58c1ac4adc5f6824b5d0c7324/src/Alias.php#L382-L391
Same here