Skip to content

Commit 521f3f1

Browse files
committed
Add assertion + TODO for test for gen_stub support of DNF types
1 parent d399f3e commit 521f3f1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Zend/zend_API.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4211,6 +4211,8 @@ ZEND_API zend_property_info *zend_declare_typed_property(zend_class_entry *ce, z
42114211
if (is_persistent_class(ce)) {
42124212
zend_type *single_type;
42134213
ZEND_TYPE_FOREACH(property_info->type, single_type) {
4214+
// TODO Add support and test cases when gen_stub support added
4215+
ZEND_ASSERT(!ZEND_TYPE_HAS_LIST(*single_type));
42144216
if (ZEND_TYPE_HAS_NAME(*single_type)) {
42154217
zend_string *name = zend_new_interned_string(ZEND_TYPE_NAME(*single_type));
42164218
ZEND_TYPE_SET_PTR(*single_type, name);

0 commit comments

Comments
 (0)