summaryrefslogtreecommitdiff
path: root/Zend/zend_API.c
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/zend_API.c')
-rw-r--r--Zend/zend_API.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Zend/zend_API.c b/Zend/zend_API.c
index f160bb4456..440e96d311 100644
--- a/Zend/zend_API.c
+++ b/Zend/zend_API.c
@@ -2001,6 +2001,9 @@ ZEND_API int zend_register_functions(zend_class_entry *scope, const zend_functio
/* Don't count the variadic argument */
internal_function->num_args--;
}
+ if (info->type_hint) {
+ internal_function->fn_flags |= ZEND_ACC_HAS_RETURN_TYPE;
+ }
} else {
internal_function->arg_info = NULL;
internal_function->num_args = 0;