laravel-idea / plugin

Laravel Idea plugin for PhpStorm
https://laravel-idea.com/
177 stars 7 forks source link

[Bug]: Multiple definitions exist for class 'Builder' #1096

Closed ryanmortier closed 1 week ago

ryanmortier commented 2 weeks ago

Bug description

Hello,

I'm suddenly getting these warnings all over my code base. Wondering if this is an issue with Laravel Idea or something else?

CleanShot 2024-11-06 at 11 49 12

Plugin version

8.4.0.241

Operating system

MacOS

Steps to reproduce

No response

Relevant log output

No response

adelf commented 2 weeks ago

Do you have "kirschbaum-development/eloquent-power-joins" package installed?

If not, could you show all 4 sources of the Builder class(I see there are 4 places in your screenshot)?

ryanmortier commented 1 week ago

I do not have that directly installed but I do have filament/support installed which has that as a dependency.

These are the 4:

vendor/kirschbaum-development/eloquent-power-joins/.stubs.php
vendor/_laravel_idea/_ide_helper_macro_static.php
vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php
vendor/_laravel_idea/_ide_helper_macro.php
adelf commented 1 week ago

It's fixed by Laravel Idea 9.0. Please update.