Skip to content

Commit 3deba4c

Browse files
committed
Update assertion about unsupported property types
1 parent 9b220cf commit 3deba4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend_execute.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -987,7 +987,7 @@ static zend_always_inline bool i_zend_check_property_type(const zend_property_in
987987
}
988988

989989
uint32_t type_mask = ZEND_TYPE_FULL_MASK(info->type);
990-
ZEND_ASSERT(!(type_mask & (MAY_BE_CALLABLE|MAY_BE_STATIC)));
990+
ZEND_ASSERT(!(type_mask & (MAY_BE_CALLABLE|MAY_BE_STATIC|MAY_BE_NEVER|MAY_BE_VOID)));
991991
return zend_verify_scalar_type_hint(type_mask, property, strict, 0);
992992
}
993993

0 commit comments

Comments
 (0)