From: Nikita Popov Date: Wed, 13 May 2020 13:02:33 +0000 (+0200) Subject: Assert on unknown type in zend_get_type_by_const() X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=87e6f93fd67b39fd3229bcc7edd42101e4984c9d;p=php Assert on unknown type in zend_get_type_by_const() --- diff --git a/Zend/zend_API.c b/Zend/zend_API.c index fe6c68e5e5..01f9277214 100644 --- a/Zend/zend_API.c +++ b/Zend/zend_API.c @@ -125,8 +125,7 @@ ZEND_API const char *zend_get_type_by_const(int type) /* {{{ */ return "void"; case _IS_NUMBER: return "number"; - default: - return "unknown"; + EMPTY_SWITCH_DEFAULT_CASE() } } /* }}} */