Skip to content

Commit 4fb2001

Browse files
committed
- Small reordering
1 parent 58c8ce9 commit 4fb2001

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/reflection/php_reflection.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -857,8 +857,6 @@ static void _function_string(string *str, zend_function *fptr, zend_class_entry
857857
fptr->op_array.line_start,
858858
fptr->op_array.line_end);
859859
}
860-
string_init(&param_indent);
861-
string_printf(&param_indent, "%s ", indent);
862860
if (closure) {
863861
const zend_function *closure_fptr = zend_get_closure_method_def(closure TSRMLS_CC);
864862
if (closure_fptr->type == ZEND_USER_FUNCTION && closure_fptr->op_array.static_variables) {
@@ -881,6 +879,8 @@ static void _function_string(string *str, zend_function *fptr, zend_class_entry
881879
}
882880
}
883881
}
882+
string_init(&param_indent);
883+
string_printf(&param_indent, "%s ", indent);
884884
_function_parameter_string(str, fptr, param_indent.string TSRMLS_CC);
885885
string_free(&param_indent);
886886
string_printf(str, "%s}\n", indent);

0 commit comments

Comments
 (0)