Skip to content

Commit 433b941

Browse files
committed
Nit: use else if instead of second if
1 parent 2f90654 commit 433b941

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
@@ -5942,7 +5942,7 @@ static void php_array_binop(INTERNAL_FUNCTION_PARAMETERS, const char *op_name, b
59425942
op(return_value, return_value, &tmp);
59435943
}
59445944
/* BC non numeric strings: previously were cast to 0 */
5945-
if (Z_TYPE_P(entry) == IS_STRING) {
5945+
else if (Z_TYPE_P(entry) == IS_STRING) {
59465946
zval tmp;
59475947
ZVAL_LONG(&tmp, 0);
59485948
op(return_value, return_value, &tmp);

0 commit comments

Comments
 (0)