1
0
mirror of https://github.com/php/php-src.git synced 2026-03-29 03:32:20 +02:00

Update assertion about unsupported property types

This commit is contained in:
Máté Kocsis
2023-03-21 11:52:52 +01:00
parent 9b220cf113
commit 3deba4c2e8

View File

@@ -987,7 +987,7 @@ static zend_always_inline bool i_zend_check_property_type(const zend_property_in
}
uint32_t type_mask = ZEND_TYPE_FULL_MASK(info->type);
ZEND_ASSERT(!(type_mask & (MAY_BE_CALLABLE|MAY_BE_STATIC)));
ZEND_ASSERT(!(type_mask & (MAY_BE_CALLABLE|MAY_BE_STATIC|MAY_BE_NEVER|MAY_BE_VOID)));
return zend_verify_scalar_type_hint(type_mask, property, strict, 0);
}