Skip to content

Commit 1aa7547

Browse files
committed
Nit: use else if instead of second if
1 parent 668d96f commit 1aa7547

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/standard/array.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5929,7 +5929,7 @@ static void php_array_binop(INTERNAL_FUNCTION_PARAMETERS, const char *op_name, b
59295929
op(return_value, return_value, &tmp);
59305930
}
59315931
/* BC non numeric strings: previously were cast to 0 */
5932-
if (Z_TYPE_P(entry) == IS_STRING) {
5932+
else if (Z_TYPE_P(entry) == IS_STRING) {
59335933
zval tmp;
59345934
ZVAL_LONG(&tmp, 0);
59355935
op(return_value, return_value, &tmp);

0 commit comments

Comments
 (0)