File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -4328,8 +4328,8 @@ ZEND_API zend_property_info *zend_declare_typed_property(zend_class_entry *ce, z
4328
4328
access_type |= ZEND_ACC_PUBLIC ;
4329
4329
}
4330
4330
if (access_type & ZEND_ACC_STATIC ) {
4331
- if ((property_info_ptr = zend_hash_find_ptr (& ce -> properties_info , name )) != NULL &&
4332
- (property_info_ptr -> flags & ZEND_ACC_STATIC ) != 0 ) {
4331
+ if ((property_info_ptr = zend_hash_find_ptr (& ce -> properties_info , name )) != NULL ) {
4332
+ ZEND_ASSERT (property_info_ptr -> flags & ZEND_ACC_STATIC );
4333
4333
property_info -> offset = property_info_ptr -> offset ;
4334
4334
zval_ptr_dtor (& ce -> default_static_members_table [property_info -> offset ]);
4335
4335
if (property_info_ptr -> doc_comment ) {
@@ -4349,8 +4349,8 @@ ZEND_API zend_property_info *zend_declare_typed_property(zend_class_entry *ce, z
4349
4349
}
4350
4350
} else {
4351
4351
zval * property_default_ptr ;
4352
- if ((property_info_ptr = zend_hash_find_ptr (& ce -> properties_info , name )) != NULL &&
4353
- ( property_info_ptr -> flags & ZEND_ACC_STATIC ) == 0 ) {
4352
+ if ((property_info_ptr = zend_hash_find_ptr (& ce -> properties_info , name )) != NULL ) {
4353
+ ZEND_ASSERT (!( property_info_ptr -> flags & ZEND_ACC_STATIC ));
4354
4354
property_info -> offset = property_info_ptr -> offset ;
4355
4355
zval_ptr_dtor (& ce -> default_properties_table [OBJ_PROP_TO_NUM (property_info -> offset )]);
4356
4356
if (property_info_ptr -> doc_comment ) {
You can’t perform that action at this time.
0 commit comments