diff --git a/language/operators/comparison.xml b/language/operators/comparison.xml index 4e89a9156d0f..b748c33325b7 100644 --- a/language/operators/comparison.xml +++ b/language/operators/comparison.xml @@ -500,11 +500,20 @@ if (isset($_POST['action'])) { expr2 if expr1 is &null;, and expr1 otherwise. - - In particular, this operator does not emit a notice or warning if the left-hand side - value does not exist, just like isset. This is especially - useful on array keys. - + + In particular, this operator does not emit a notice or warning if the + left-hand side value does not exist, just like isset. + This is especially useful on array keys. + This suppression only applies when the left-hand operand is a variable + expression: a combination of variable accesses + ($var), array accesses ($var['key']), + property accesses ($var->prop), null-safe property and + method accesses ($var?->prop, + $var?->method()), static property accesses + (Class::$prop), and function/method calls. + If the left-hand operand is a more complex expression (such as a + concatenation or arithmetic operation), warnings will not be suppressed. + Please note that the null coalescing operator is an expression, and that it