Skip to content

Commit 8e29897

Browse files
committed
feedback
1 parent 50bfa3a commit 8e29897

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

ext/dom/php_dom.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -425,12 +425,8 @@ zval *dom_write_property(zend_object *object, zend_string *name, zval *value, vo
425425
}
426426

427427
if (UNEXPECTED(!hnd->write_func)) {
428-
if (prop && (prop->flags & ZEND_ACC_PPP_SET_MASK) &&
429-
!zend_asymmetric_property_has_set_access(prop)) {
430-
zend_asymmetric_visibility_property_modification_error(prop, "modify");
431-
} else {
432-
zend_readonly_property_modification_error_ex(ZSTR_VAL(object->ce->name), ZSTR_VAL(name));
433-
}
428+
ZEND_ASSERT(prop && (prop->flags & ZEND_ACC_PPP_SET_MASK));
429+
zend_asymmetric_visibility_property_modification_error(prop, "modify");
434430
return &EG(error_zval);
435431
}
436432

0 commit comments

Comments
 (0)