laravel-ide-helper icon indicating copy to clipboard operation
laravel-ide-helper copied to clipboard

ReflectionException in Alias::getMacroFunction

Open chu121su12 opened this issue 1 year ago • 1 comments

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

chu121su12 avatar May 14 '24 03:05 chu121su12

Same here

muarachmann avatar Jun 08 '24 23:06 muarachmann