-
-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hability to blacklist static methods #39
Comments
Hey, I've transferred the issue to the laravel-enum package because your usecase applies to the Laravel implementation. This will be done on a new |
@Gummibeer OK, I'll be watching. Thanks. |
Can I pitch in? I think |
There's still a pending PR that would be needed for this to work: laravel/framework#32213 |
Dear contributor, because this issue seems to be inactive for quite some time now, I've automatically closed it. If you feel this issue deserves some attention from my human colleagues feel free to reopen it. |
I know this issue has been discussed in spatie/enum#28 but with the recent addition of the
Castable
interface in Laravel I believe this needs to be revised.I've created custom casters to
Enum
classes and would like to be able to make them implement theCastable
interface which required apublic static castUsing()
method.Currently this is impossible with
Enum
classes because static methods are assumed to be enum values. An@ignoreEnum
doc annotation, like suggested in the issue, would solve this while still maintaining backwards compatibility.The text was updated successfully, but these errors were encountered: