Skip to content

Commit b524028

Browse files
committed
Fix set_error_handler() arginfo
1 parent d235654 commit b524028

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Zend/zend_builtin_functions.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -300,9 +300,9 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_trigger_error, 0, 0, 1)
300300
ZEND_ARG_TYPE_INFO(0, error_type, IS_LONG, 0)
301301
ZEND_END_ARG_INFO()
302302

303-
/* string set_error_handler(string error_handler [, int error_types]) */
304-
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_set_error_handler, 0, 1, IS_STRING, 0, 0)
305-
ZEND_ARG_TYPE_INFO(0, error_handler, IS_STRING, 0)
303+
/* mixed set_error_handler(string error_handler [, int error_types]) */
304+
ZEND_BEGIN_ARG_INFO_EX(arginfo_set_error_handler, 0, 0, 1)
305+
ZEND_ARG_TYPE_INFO(0, error_handler, IS_CALLABLE, 0)
306306
ZEND_ARG_TYPE_INFO(0, error_types, IS_LONG, 0)
307307
ZEND_END_ARG_INFO()
308308

@@ -1811,7 +1811,7 @@ ZEND_FUNCTION(trigger_error)
18111811
}
18121812
/* }}} */
18131813

1814-
/* {{{ proto string set_error_handler(string error_handler [, int error_types])
1814+
/* {{{ proto string set_error_handler(callable error_handler [, int error_types])
18151815
Sets a user-defined error handler function. Returns the previously defined error handler, or false on error */
18161816
ZEND_FUNCTION(set_error_handler)
18171817
{
@@ -1880,7 +1880,7 @@ ZEND_FUNCTION(restore_error_handler)
18801880
}
18811881
/* }}} */
18821882

1883-
/* {{{ proto string set_exception_handler(callable exception_handler)
1883+
/* {{{ proto mixed set_exception_handler(callable exception_handler)
18841884
Sets a user-defined exception handler function. Returns the previously defined exception handler, or false on error */
18851885
ZEND_FUNCTION(set_exception_handler)
18861886
{

0 commit comments

Comments
 (0)