diff options
| author | Nikita Popov <nikita.ppv@gmail.com> | 2018-02-04 23:20:14 +0100 |
|---|---|---|
| committer | Nikita Popov <nikita.ppv@gmail.com> | 2018-02-04 23:20:44 +0100 |
| commit | b4dff68379d8625f4895e74841683205d3fdd9ae (patch) | |
| tree | 6badf7a937481750c167400cf02e0496b968c442 /Zend/zend_inheritance.c | |
| parent | fef879a2d63899ed25f39b4581c16682afdd0a8f (diff) | |
| download | php-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.c | 10 |
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, ' '); } |
