Skip to content

Unary null coalescing operator #197

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

Conversation

hikari-no-yume
Copy link
Contributor

@Hywan
Copy link
Contributor

Hywan commented Jun 23, 2017

Thank you for the PR. Let's see if the RFC is accepted or not.

$a = $arr["qux"] ?? "bang"; // "bang" as $arr["qux"] is NULL
$a = $arr["qux"]??; // "bang" as $arr["qux"] is NULL

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo: "bang" -> NULL

@hikari-no-yume
Copy link
Contributor Author

RFC declined.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants