Skip to content

Conversation

hikari-no-yume
Copy link
Contributor

Corresponding php-src patch: php/php-src#2589

RFC: https://wiki.php.net/rfc/unary_null_coalescing_operator (not yet accepted)

@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