-
Notifications
You must be signed in to change notification settings - Fork 11.2k
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
[5.6] Implement Optional::__isset #24042
Conversation
I don't understand the example code from your issue. the argument to |
Because in my example code, the Check on PHP's document here:
|
You can clean up the assertions by using these methods:
|
@BrandonShar Thank you for your advice! I have updated them! |
/** | ||
* Dynamically check a property exists on the underlying object. | ||
* | ||
* @param $name |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
invalid syntax
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is auto generated by PhpStorm, I didn't notice that. Since it has been merged, should I open another PR?
This pull request implemented
__isset
method on Optional class.See #24031 for more detail.