You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have defined a enum which is used in the casts of a eloquent model. On the database the field is a smallint. The generated doc-block marks the element as int. It would be great if the enum could be referenced here.
In my case, IDE Helper its correctly typing enum casts.
If i hover over role it shows @var \App\Enums\Role $role.
But i dont understand why the isAdmin() function is not typed in IDE Helper files, it makes the IDE think that method is not defined on the enum, but it is.
Any idea why this could be? 👀 @barryvdh
Summary
I have defined a enum which is used in the casts of a eloquent model. On the database the field is a smallint. The generated doc-block marks the element as int. It would be great if the enum could be referenced here.
The text was updated successfully, but these errors were encountered: