Skip to content

Commit aafb8a6

Browse files
committed
standard: Use booleans in array_merge()
1 parent e32c2c3 commit aafb8a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/standard/array.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4307,12 +4307,12 @@ static zend_always_inline void php_array_merge_wrapper(INTERNAL_FUNCTION_PARAMET
43074307
RETURN_COPY(ret);
43084308
}
43094309
} else {
4310-
bool copy = 1;
4310+
bool copy = true;
43114311
zend_string *string_key;
43124312

43134313
ZEND_HASH_MAP_FOREACH_STR_KEY(Z_ARRVAL_P(ret), string_key) {
43144314
if (!string_key) {
4315-
copy = 0;
4315+
copy = false;
43164316
break;
43174317
}
43184318
} ZEND_HASH_FOREACH_END();

0 commit comments

Comments
 (0)