-
Notifications
You must be signed in to change notification settings - Fork 378
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
cleanup ProductOption accessor/mutator and fix fields casting #1783
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@alecritson @wychoong is this still needed? I can see it's draft, but at the same time Alec approved it. |
Not sure why it’s changed to draft |
@glennjacobs I took a fresh look on it, this should be the proper way. updated my findings in the first comment. It also makes me think should all the usage of |
with the accessor/mutator defined for the
name
andlabel
fields, the cast is never usedthis PR removed the redundant accessor/mutator and changed to
AsArrayObject
cast instead ofAs Collection
using
AsArrayObject
allows following usageas compared to previous accessor/mutator json_encode
or
AsCollection