mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Remove ZEND_ACC_ABSTRACT from prop variance check
Abstract properties are now virtual, unless they actually contain concrete hook implementations using the backing field.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user