From 44ef0376556af58c4fb50666a53bb8c27e34ec48 Mon Sep 17 00:00:00 2001 From: Mikhail Alferov Date: Fri, 14 Mar 2025 02:00:09 +0300 Subject: [PATCH] set-error-handler.xml Remove the misleading statement For the method of the class as an error handler, the `set_error_handler` function may return a `callable`: a) a string b) a Closure c) an indexed array (with the name of the class or an instance of the class in the first element, and the name of the method in the second one) However, it is not limited to just "an indexed array with the class and method name". I suggest removing the mention of the array as a return value, otherwise we will have to list every possible type of callable value :) --- reference/errorfunc/functions/set-error-handler.xml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/reference/errorfunc/functions/set-error-handler.xml b/reference/errorfunc/functions/set-error-handler.xml index 162d12321cb0..757c2251918b 100644 --- a/reference/errorfunc/functions/set-error-handler.xml +++ b/reference/errorfunc/functions/set-error-handler.xml @@ -159,11 +159,8 @@ &reftitle.returnvalues; - Returns the previously defined error handler (if any). If - the built-in error handler is used &null; is returned. - If the previous error handler - was a class method, this function will return an indexed array with the class - and the method name. + Returns the previously defined error handler (if any) as a callable. + If the built-in error handler is used &null; is returned.