diff --git a/language/operators.xml b/language/operators.xml index 484a054f8f..f9441c60c7 100644 --- a/language/operators.xml +++ b/language/operators.xml @@ -1842,12 +1842,9 @@ echo $foo ?? $bar ?? $baz ?? $qux; // outputs 1 which will return 0 when the call that triggered the error was preceded by an @. - If the - feature is enabled, any error message generated by the expression - will be saved in the variable - $php_errormsg. - This variable will be overwritten on each error, so check early if you - want to use it. + Any error message generated by the expression is available in the "message" + element of the array returned by get_error_last. + The result of that function will change on each error, so it needs to be checked early. @@ -1856,7 +1853,7 @@ echo $foo ?? $bar ?? $baz ?? $qux; // outputs 1