@@ -7472,15 +7472,15 @@ static void zend_are_intersection_types_redundant(const zend_type left_type, con
74727472
74737473 unsigned int sum = 0 ;
74747474 const zend_type * outer_type ;
7475- ZEND_TYPE_LIST_FOREACH (smaller_type_list , outer_type )
7475+ ZEND_TYPE_LIST_FOREACH (smaller_type_list , outer_type ) {
74767476 const zend_type * inner_type ;
7477- ZEND_TYPE_LIST_FOREACH (larger_type_list , inner_type )
7477+ ZEND_TYPE_LIST_FOREACH (larger_type_list , inner_type ) {
74787478 if (zend_string_equals_ci (ZEND_TYPE_NAME (* inner_type ), ZEND_TYPE_NAME (* outer_type ))) {
74797479 sum ++ ;
74807480 break ;
74817481 }
7482- ZEND_TYPE_LIST_FOREACH_END ();
7483- ZEND_TYPE_LIST_FOREACH_END ();
7482+ } ZEND_TYPE_LIST_FOREACH_END ();
7483+ } ZEND_TYPE_LIST_FOREACH_END ();
74847484
74857485 if (sum == smaller_type_list -> num_types ) {
74867486 zend_string * smaller_type_str ;
@@ -7508,14 +7508,14 @@ static void zend_is_intersection_type_redundant_by_single_type(const zend_type i
75087508 ZEND_ASSERT (!ZEND_TYPE_IS_INTERSECTION (single_type ));
75097509
75107510 const zend_type * single_intersection_type = NULL ;
7511- ZEND_TYPE_FOREACH (intersection_type , single_intersection_type )
7511+ ZEND_TYPE_FOREACH (intersection_type , single_intersection_type ) {
75127512 if (zend_string_equals_ci (ZEND_TYPE_NAME (* single_intersection_type ), ZEND_TYPE_NAME (single_type ))) {
75137513 zend_string * single_type_str = zend_type_to_string (single_type );
75147514 zend_string * complete_type = zend_type_to_string (intersection_type );
75157515 zend_error_noreturn (E_COMPILE_ERROR , "Type %s is redundant as it is more restrictive than type %s" ,
75167516 ZSTR_VAL (complete_type ), ZSTR_VAL (single_type_str ));
75177517 }
7518- ZEND_TYPE_FOREACH_END ();
7518+ } ZEND_TYPE_FOREACH_END ();
75197519}
75207520
75217521/* Used by both intersection and union types prior to transforming the type list to a full zend_type */
@@ -8465,7 +8465,7 @@ static void compile_implicit_lexical_binds(
84658465 op_array -> static_variables = zend_new_array (8 );
84668466 }
84678467
8468- ZEND_HASH_MAP_FOREACH_STR_KEY (& info -> uses , var_name )
8468+ ZEND_HASH_MAP_FOREACH_STR_KEY (& info -> uses , var_name ) {
84698469 zval * value = zend_hash_add (
84708470 op_array -> static_variables , var_name , & EG (uninitialized_zval ));
84718471 uint32_t offset = (uint32_t )((char * )value - (char * )op_array -> static_variables -> arData );
@@ -8474,7 +8474,7 @@ static void compile_implicit_lexical_binds(
84748474 opline -> op2_type = IS_CV ;
84758475 opline -> op2 .var = lookup_cv (var_name );
84768476 opline -> extended_value = offset | ZEND_BIND_IMPLICIT ;
8477- ZEND_HASH_FOREACH_END ();
8477+ } ZEND_HASH_FOREACH_END ();
84788478}
84798479
84808480static void zend_compile_closure_uses (zend_ast * ast ) /* {{{ */
@@ -8514,11 +8514,11 @@ static void zend_compile_closure_uses(zend_ast *ast) /* {{{ */
85148514static void zend_compile_implicit_closure_uses (const closure_info * info )
85158515{
85168516 zend_string * var_name ;
8517- ZEND_HASH_MAP_FOREACH_STR_KEY (& info -> uses , var_name )
8517+ ZEND_HASH_MAP_FOREACH_STR_KEY (& info -> uses , var_name ) {
85188518 zval zv ;
85198519 ZVAL_NULL (& zv );
85208520 zend_compile_static_var_common (var_name , & zv , ZEND_BIND_IMPLICIT );
8521- ZEND_HASH_FOREACH_END ();
8521+ } ZEND_HASH_FOREACH_END ();
85228522}
85238523
85248524static void add_stringable_interface (zend_class_entry * ce ) {
0 commit comments