summaryrefslogtreecommitdiff
path: root/Zend/zend_inheritance.c
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2018-02-04 23:20:14 +0100
committerNikita Popov <nikita.ppv@gmail.com>2018-02-04 23:20:44 +0100
commitb4dff68379d8625f4895e74841683205d3fdd9ae (patch)
tree6badf7a937481750c167400cf02e0496b968c442 /Zend/zend_inheritance.c
parentfef879a2d63899ed25f39b4581c16682afdd0a8f (diff)
downloadphp-git-b4dff68379d8625f4895e74841683205d3fdd9ae.tar.gz
Remove no longer necessary type-name special cases
zend_get_type_by_name() now produces the correct value by itself, so we no longer need these workarounds.
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, ' ');
}