Correct "null coalesce" to "null coalescing"

When I originally named the "Null Coalesce Operator" RFC, I made this mistake. But the manual doesn't need to repeat it.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@338220 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Andrea Faulds 2015-12-07 14:49:18 +00:00
parent 7f406ddfdc
commit 2bea2e045b
2 changed files with 4 additions and 4 deletions

View file

@ -109,10 +109,10 @@ Array
</sect2>
<sect2 xml:id="migration70.new-features.null-coalesce-op">
<title>Null coalesce operator</title>
<title>Null coalescing operator</title>
<para>
The null coalesce operator (<literal>??</literal>) has been added as
The null coalescing operator (<literal>??</literal>) has been added as
syntactic sugar for the common case of needing to use a ternary in
conjunction with <function>isset</function>. It returns its first operand
if it exists and is not &null;; otherwise it returns its second operand.
@ -128,7 +128,7 @@ $username = $_GET['user'] ?? 'nobody';
// This is equivalent to:
$username = isset($_GET['user']) ? $_GET['user'] : 'nobody';
// Coalesces can be chained: this will return the first
// Coalescing can be chained: this will return the first
// defined value out of $_GET['user'], $_POST['user'], and
// 'nobody'.
$username = $_GET['user'] ?? $_POST['user'] ?? 'nobody';

View file

@ -1300,7 +1300,7 @@ Expression: 0 = -4 << 62
</row>
<row>
<entry>$a ?? $b ?? $c</entry>
<entry>Null coalesce</entry>
<entry>Null coalescing</entry>
<entry>
The first operand from left to right that exists and is not &null;.
&null; if no values are defined and not &null;. Available as of PHP 7.