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

Support null-safe instance operator #9

Closed
thekid opened this issue Oct 22, 2017 · 1 comment
Closed

Support null-safe instance operator #9

thekid opened this issue Oct 22, 2017 · 1 comment

Comments

@thekid
Copy link
Member

thekid commented Oct 22, 2017

$name= $user?->name();  // will be null if $user is null

https://docs.hhvm.com/hack/operators/null-safe
https://wiki.php.net/rfc/nullsafe_calls (Draft)

@thekid
Copy link
Member Author

thekid commented Jul 19, 2020

https://wiki.php.net/rfc/nullsafe_operator is in voting phase and will most probably be in PHP 8.0

thekid added a commit to xp-framework/ast that referenced this issue Jul 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant