Skip to content

Commit 87e6f93

Browse files
committed
Assert on unknown type in zend_get_type_by_const()
1 parent fa919f9 commit 87e6f93

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Zend/zend_API.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,7 @@ ZEND_API const char *zend_get_type_by_const(int type) /* {{{ */
125125
return "void";
126126
case _IS_NUMBER:
127127
return "number";
128-
default:
129-
return "unknown";
128+
EMPTY_SWITCH_DEFAULT_CASE()
130129
}
131130
}
132131
/* }}} */

0 commit comments

Comments
 (0)