Skip to content

Commit 8fcf34d

Browse files
committed
Remove ZEND_ACC_ABSTRACT from prop variance check
Abstract properties are now virtual, unless they actually contain concrete hook implementations using the backing field.
1 parent 7e45e57 commit 8fcf34d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend_inheritance.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1396,7 +1396,7 @@ static void inherit_property_hook(
13961396
}
13971397

13981398
static prop_variance prop_get_variance(zend_property_info *prop_info) {
1399-
bool unbacked = prop_info->flags & (ZEND_ACC_ABSTRACT|ZEND_ACC_VIRTUAL);
1399+
bool unbacked = prop_info->flags & ZEND_ACC_VIRTUAL;
14001400
if (unbacked && prop_info->hooks) {
14011401
if (!prop_info->hooks[ZEND_PROPERTY_HOOK_SET]) {
14021402
return PROP_COVARIANT;

0 commit comments

Comments
 (0)