Laravel-ide-helper: ide-helper:models documents methods as static when their usage isn't.

Created on 8 Jun 2019  路  2Comments  路  Source: barryvdh/laravel-ide-helper

Model docblock generation creates stuff like this:

* @method static bool|null forceDelete()

But most of these methods, as documented on Laravel website, are not invoked statically. Actually doing something like $user::forceDelete() results in Exception:

Non-static method App\Models\User::forceDelete() should not be called statically

So I wonder why those methods were docBloc'ed as static?

stale

Most helpful comment

I noticed #550 tried to fix this, but it hasn't been merged and is 2 yrs old. @barryvdh is IDE-Helper maintained?

All 2 comments

I noticed #550 tried to fix this, but it hasn't been merged and is 2 yrs old. @barryvdh is IDE-Helper maintained?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
If this issue is still present on the latest version of this library on supported Laravel versions, please let us know by replying to this issue so we can investigate further.
Thank you for your contribution! Apologies for any delayed response on our side.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghost picture ghost  路  5Comments

anik786 picture anik786  路  3Comments

Gummibeer picture Gummibeer  路  3Comments

Lambik picture Lambik  路  5Comments

GitzJoey picture GitzJoey  路  4Comments