Skip to content
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

Add isset() support for label and value #109

Merged
merged 3 commits into from
Feb 5, 2022

Conversation

HergenD
Copy link
Contributor

@HergenD HergenD commented Oct 21, 2021

As both label and value properties can currently be accessed through the magic getter, isset will return false if you try to check for them.

This PR adds a simple __isset() method that returns true for label and value properties. I feel like this is probably not used much and thus not noticed so far, but having isset working would be expected behavior for me.

@Gummibeer
Copy link
Collaborator

Thanks, you are totally right with both points.^^
Will be released tomorrow.

@Gummibeer Gummibeer added hacktoberfest https://hacktoberfest.digitalocean.com hacktoberfest-accepted labels Oct 21, 2021
@HergenD
Copy link
Contributor Author

HergenD commented Nov 8, 2021

Any update on this? 🙂

@Gummibeer Gummibeer merged commit cfa57a8 into spatie:main Feb 5, 2022
@Gummibeer
Copy link
Collaborator

Gummibeer commented Feb 5, 2022

Hey, thanks for your contribution and sorry for the massive delay! 🙏
It's released now. 🎉🚀
https://github.com/spatie/enum/releases/tag/3.12.0

In case you want to check why it took so long:
https://gummibeer.dev/blog/2022/end-of-an-era/

@HergenD
Copy link
Contributor Author

HergenD commented Feb 7, 2022

@Gummibeer No worries, thanks for the release and good luck with everything :)

@HergenD HergenD deleted the isset-support-for-value-and-label branch February 7, 2022 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest https://hacktoberfest.digitalocean.com hacktoberfest-accepted
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants