summaryrefslogtreecommitdiff
path: root/Zend/zend_inheritance.c
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/zend_inheritance.c')
-rw-r--r--Zend/zend_inheritance.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/Zend/zend_inheritance.c b/Zend/zend_inheritance.c
index 76bc91a956..46a674ba90 100644
--- a/Zend/zend_inheritance.c
+++ b/Zend/zend_inheritance.c
@@ -410,14 +410,8 @@ static ZEND_COLD void zend_append_type_hint(smart_str *str, const zend_function
smart_str_appendc(str, ' ');
}
} else if (ZEND_TYPE_IS_CODE(arg_info->type)) {
- if (ZEND_TYPE_CODE(arg_info->type) == IS_LONG) {
- smart_str_appendl(str, "int", 3);
- } else if (ZEND_TYPE_CODE(arg_info->type) == _IS_BOOL) {
- smart_str_appendl(str, "bool", 4);
- } else {
- const char *type_name = zend_get_type_by_const(ZEND_TYPE_CODE(arg_info->type));
- smart_str_appends(str, type_name);
- }
+ const char *type_name = zend_get_type_by_const(ZEND_TYPE_CODE(arg_info->type));
+ smart_str_appends(str, type_name);
if (!return_hint) {
smart_str_appendc(str, ' ');
}