@@ -1278,7 +1278,7 @@ static void zend_mark_function_as_generator() /* {{{ */
1278
1278
1279
1279
if (ZEND_TYPE_CODE (return_info .type ) != IS_ITERABLE ) {
1280
1280
const char * msg = "Generators may only declare a return type of Generator, Iterator, Traversable, or iterable, %s is not permitted" ;
1281
-
1281
+
1282
1282
if (!ZEND_TYPE_IS_CLASS (return_info .type )) {
1283
1283
zend_error_noreturn (E_COMPILE_ERROR , msg , zend_get_type_by_const (ZEND_TYPE_CODE (return_info .type )));
1284
1284
}
@@ -1947,7 +1947,7 @@ ZEND_API size_t zend_dirname(char *path, size_t len)
1947
1947
static void zend_adjust_for_fetch_type (zend_op * opline , uint32_t type ) /* {{{ */
1948
1948
{
1949
1949
zend_uchar factor = (opline -> opcode == ZEND_FETCH_STATIC_PROP_R ) ? 1 : 3 ;
1950
-
1950
+
1951
1951
if (opline -> opcode == ZEND_FETCH_THIS ) {
1952
1952
return ;
1953
1953
}
@@ -2185,7 +2185,7 @@ static void zend_emit_tick(void) /* {{{ */
2185
2185
if (CG (active_op_array )-> last && CG (active_op_array )-> opcodes [CG (active_op_array )-> last - 1 ].opcode == ZEND_TICKS ) {
2186
2186
return ;
2187
2187
}
2188
-
2188
+
2189
2189
opline = get_next_op (CG (active_op_array ));
2190
2190
2191
2191
opline -> opcode = ZEND_TICKS ;
@@ -2612,7 +2612,7 @@ static zend_op *zend_compile_simple_var_no_cv(znode *result, zend_ast *ast, uint
2612
2612
opline = zend_emit_op (result , ZEND_FETCH_R , & name_node , NULL );
2613
2613
}
2614
2614
2615
- if (name_node .op_type == IS_CONST &&
2615
+ if (name_node .op_type == IS_CONST &&
2616
2616
zend_is_auto_global (Z_STR (name_node .u .constant ))) {
2617
2617
2618
2618
opline -> extended_value = ZEND_FETCH_GLOBAL ;
@@ -4968,7 +4968,7 @@ void zend_compile_switch(zend_ast *ast) /* {{{ */
4968
4968
} else if (expr_node .op_type == IS_CONST
4969
4969
&& Z_TYPE (expr_node .u .constant ) == IS_TRUE ) {
4970
4970
jmpnz_opnums [i ] = zend_emit_cond_jump (ZEND_JMPNZ , & cond_node , 0 );
4971
- } else {
4971
+ } else {
4972
4972
opline = zend_emit_op (NULL , ZEND_CASE , & expr_node , & cond_node );
4973
4973
SET_NODE (opline -> result , & case_node );
4974
4974
if (opline -> op1_type == IS_CONST ) {
@@ -4992,7 +4992,7 @@ void zend_compile_switch(zend_ast *ast) /* {{{ */
4992
4992
if (jumptable ) {
4993
4993
zval * cond_zv = zend_ast_get_zval (cond_ast );
4994
4994
zval jmp_target ;
4995
- ZVAL_LONG (& jmp_target , get_next_op_number (CG (active_op_array )));
4995
+ ZVAL_LONG (& jmp_target , get_next_op_number (CG (active_op_array )));
4996
4996
4997
4997
ZEND_ASSERT (Z_TYPE_P (cond_zv ) == jumptable_type );
4998
4998
if (Z_TYPE_P (cond_zv ) == IS_LONG ) {
@@ -5166,7 +5166,7 @@ void zend_compile_try(zend_ast *ast) /* {{{ */
5166
5166
if (finally_ast ) {
5167
5167
zend_loop_var discard_exception ;
5168
5168
uint32_t opnum_jmp = get_next_op_number (CG (active_op_array )) + 1 ;
5169
-
5169
+
5170
5170
/* Pop FAST_CALL from unwind stack */
5171
5171
zend_stack_del_top (& CG (loop_var_stack ));
5172
5172
@@ -5417,7 +5417,7 @@ void zend_compile_params(zend_ast *ast, zend_ast *return_type_ast) /* {{{ */
5417
5417
uint32_t i ;
5418
5418
zend_op_array * op_array = CG (active_op_array );
5419
5419
zend_arg_info * arg_infos ;
5420
-
5420
+
5421
5421
if (return_type_ast ) {
5422
5422
zend_bool allow_null = 0 ;
5423
5423
@@ -5560,7 +5560,7 @@ void zend_compile_params(zend_ast *ast, zend_ast *return_type_ast) /* {{{ */
5560
5560
"with a float type can only be float, integer, or NULL" );
5561
5561
}
5562
5562
break ;
5563
-
5563
+
5564
5564
case IS_ITERABLE :
5565
5565
if (Z_TYPE (default_node .u .constant ) != IS_ARRAY ) {
5566
5566
zend_error_noreturn (E_COMPILE_ERROR , "Default value for parameters "
@@ -5572,7 +5572,7 @@ void zend_compile_params(zend_ast *ast, zend_ast *return_type_ast) /* {{{ */
5572
5572
zend_error_noreturn (E_COMPILE_ERROR , "Default value for parameters "
5573
5573
"with an object type can only be NULL" );
5574
5574
break ;
5575
-
5575
+
5576
5576
default :
5577
5577
if (!ZEND_SAME_FAKE_TYPE (ZEND_TYPE_CODE (arg_info -> type ), Z_TYPE (default_node .u .constant ))) {
5578
5578
zend_error_noreturn (E_COMPILE_ERROR , "Default value for parameters "
@@ -5605,7 +5605,7 @@ void zend_compile_params(zend_ast *ast, zend_ast *return_type_ast) /* {{{ */
5605
5605
} else {
5606
5606
opline -> op2 .num = -1 ;
5607
5607
}
5608
- }
5608
+ }
5609
5609
}
5610
5610
5611
5611
/* These are assigned at the end to avoid unitialized memory in case of an error */
@@ -7315,12 +7315,11 @@ void zend_compile_coalesce(znode *result, zend_ast *ast) /* {{{ */
7315
7315
7316
7316
void zend_compile_exception_coalesce (znode * result , zend_ast * ast ) /* {{{ */
7317
7317
{
7318
- zend_ast * expr_ast = ast -> child [0 ];
7319
- zend_ast * default_ast = ast -> child [1 ];
7318
+ zend_ast * expr = ast -> child [0 ];
7320
7319
7321
7320
zend_ast * hack = zend_ast_create_ex (ZEND_AST_INCLUDE_OR_EVAL , ZEND_EVAL ,
7322
7321
zend_ast_create_zval_from_str (
7323
- zend_ast_export ("try { return " , expr_ast , "; } catch(\\Throwable $e) {}" )));
7322
+ zend_ast_export ("try { return " , expr , "; } catch(\\Throwable $e) {}" )));
7324
7323
7325
7324
ast -> child [0 ] = hack ;
7326
7325
@@ -7871,7 +7870,7 @@ static void zend_compile_encaps_list(znode *result, zend_ast *ast) /* {{{ */
7871
7870
i = ((j * sizeof (zend_string * )) + (sizeof (zval ) - 1 )) / sizeof (zval );
7872
7871
while (i > 1 ) {
7873
7872
get_temporary_variable (CG (active_op_array ));
7874
- i -- ;
7873
+ i -- ;
7875
7874
}
7876
7875
7877
7876
zend_end_live_range (CG (active_op_array ), range , opline - CG (active_op_array )-> opcodes ,
0 commit comments