@@ -6598,7 +6598,7 @@ void zend_compile_params(zend_ast *ast, zend_ast *return_type_ast, uint32_t fall
6598
6598
zend_string * name = zval_make_interned_string (zend_ast_get_zval (var_ast ));
6599
6599
bool is_ref = (param_ast -> attr & ZEND_PARAM_REF ) != 0 ;
6600
6600
bool is_variadic = (param_ast -> attr & ZEND_PARAM_VARIADIC ) != 0 ;
6601
- uint32_t flags = param_ast -> attr & (ZEND_ACC_PPP_MASK | ZEND_ACC_READONLY );
6601
+ uint32_t property_flags = param_ast -> attr & (ZEND_ACC_PPP_MASK | ZEND_ACC_READONLY );
6602
6602
6603
6603
znode var_node , default_node ;
6604
6604
zend_uchar opcode ;
@@ -6680,7 +6680,7 @@ void zend_compile_params(zend_ast *ast, zend_ast *return_type_ast, uint32_t fall
6680
6680
6681
6681
if (type_ast ) {
6682
6682
uint32_t default_type = * default_ast_ptr ? Z_TYPE (default_node .u .constant ) : IS_UNDEF ;
6683
- bool force_nullable = default_type == IS_NULL && !flags ;
6683
+ bool force_nullable = default_type == IS_NULL && !property_flags ;
6684
6684
6685
6685
op_array -> fn_flags |= ZEND_ACC_HAS_TYPE_HINTS ;
6686
6686
arg_info -> type = zend_compile_typename (type_ast , force_nullable );
@@ -6723,14 +6723,14 @@ void zend_compile_params(zend_ast *ast, zend_ast *return_type_ast, uint32_t fall
6723
6723
}
6724
6724
6725
6725
uint32_t arg_info_flags = _ZEND_ARG_INFO_FLAGS (is_ref , is_variadic , /* is_tentative */ 0 )
6726
- | (flags ? _ZEND_IS_PROMOTED_BIT : 0 );
6726
+ | (property_flags ? _ZEND_IS_PROMOTED_BIT : 0 );
6727
6727
ZEND_TYPE_FULL_MASK (arg_info -> type ) |= arg_info_flags ;
6728
6728
if (opcode == ZEND_RECV ) {
6729
6729
opline -> op2 .num = type_ast ?
6730
6730
ZEND_TYPE_FULL_MASK (arg_info -> type ) : MAY_BE_ANY ;
6731
6731
}
6732
6732
6733
- if (flags ) {
6733
+ if (property_flags ) {
6734
6734
zend_op_array * op_array = CG (active_op_array );
6735
6735
zend_class_entry * scope = op_array -> scope ;
6736
6736
bool is_ctor =
@@ -6777,7 +6777,7 @@ void zend_compile_params(zend_ast *ast, zend_ast *return_type_ast, uint32_t fall
6777
6777
zend_string * doc_comment =
6778
6778
doc_comment_ast ? zend_string_copy (zend_ast_get_str (doc_comment_ast )) : NULL ;
6779
6779
zend_property_info * prop = zend_declare_typed_property (
6780
- scope , name , & default_value , flags | ZEND_ACC_PROMOTED , doc_comment , type );
6780
+ scope , name , & default_value , property_flags | ZEND_ACC_PROMOTED , doc_comment , type );
6781
6781
if (attributes_ast ) {
6782
6782
zend_compile_attributes (
6783
6783
& prop -> attributes , attributes_ast , 0 , ZEND_ATTRIBUTE_TARGET_PROPERTY );
0 commit comments