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

Incompatibility with Laravel Tags

Open usernotnull opened this issue 4 years ago • 4 comments

Versions:

  • ide-helper Version: 2.9.0
  • PHP Version: 8.0.4
  • laravel-tags: 4.0.1

Description:

Cannot add IdeHelper mixin to model that uses tags from https://github.com/spatie/laravel-tags

Exception: Call to undefined method ReflectionUnionType::getName()
Could not analyze class App\Models\THE_MODEL_NAME

Steps To Reproduce:

Fresh installation, add a model that has "use HasTags;" from https://github.com/spatie/laravel-tags Then regenerate .phpstorm.meta.php

usernotnull avatar Mar 13 '21 07:03 usernotnull

Might be already fixed with https://github.com/barryvdh/laravel-ide-helper/pull/1132 (can't say), but there was no release either.

Can you try the -dev version?

mfn avatar Mar 13 '21 09:03 mfn

@mfn You're right, the -dev version fixed it. I won't mark it as resolved I guess until the dev is merged?

usernotnull avatar Mar 13 '21 11:03 usernotnull

@RJFares makes sense :)

@barryvdh would you mind if we cut a new release?

mfn avatar Mar 13 '21 19:03 mfn

Does that bug fixed? Same error for me

cmzz avatar May 08 '21 09:05 cmzz

OP already said it's fixed with the dev version, that was 3 years ago; there have been numerous releases since -> closing

mfn avatar Feb 16 '24 22:02 mfn