From 3e0354fcfc15160a9cfae43f56966f0fbcbc5cd9 Mon Sep 17 00:00:00 2001 From: Christoph Michael Becker Date: Tue, 6 Oct 2020 11:52:01 +0000 Subject: [PATCH] Fix #80191: Deprecated example git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350797 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/operators.xml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) 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