1
0
mirror of https://github.com/php/doc-en.git synced 2026-04-25 00:08:24 +02:00
Files
Mikhail Alferov 21ce7d7f4f 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 :)
2025-04-24 16:08:57 +02:00

12 KiB