From 8fcf34d598ce19861c742c011e73a5ade7837978 Mon Sep 17 00:00:00 2001 From: Ilija Tovilo Date: Fri, 23 Aug 2024 16:13:23 +0200 Subject: [PATCH] Remove ZEND_ACC_ABSTRACT from prop variance check Abstract properties are now virtual, unless they actually contain concrete hook implementations using the backing field. --- Zend/zend_inheritance.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Zend/zend_inheritance.c b/Zend/zend_inheritance.c index b43544766b8..2d6e0e42773 100644 --- a/Zend/zend_inheritance.c +++ b/Zend/zend_inheritance.c @@ -1396,7 +1396,7 @@ static void inherit_property_hook( } static prop_variance prop_get_variance(zend_property_info *prop_info) { - bool unbacked = prop_info->flags & (ZEND_ACC_ABSTRACT|ZEND_ACC_VIRTUAL); + bool unbacked = prop_info->flags & ZEND_ACC_VIRTUAL; if (unbacked && prop_info->hooks) { if (!prop_info->hooks[ZEND_PROPERTY_HOOK_SET]) { return PROP_COVARIANT;