Skip to content

Commit 9b022c4

Browse files
authored
ext/standard: replace RETVAL_EMPTY_ARRAY() + return with RETURN_EMPTY_ARRAY() (#21464)
1 parent e6db18b commit 9b022c4

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

ext/standard/array.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6477,8 +6477,7 @@ PHP_FUNCTION(array_filter)
64776477
}
64786478

64796479
if (zend_hash_num_elements(Z_ARRVAL_P(array)) == 0) {
6480-
RETVAL_EMPTY_ARRAY();
6481-
return;
6480+
RETURN_EMPTY_ARRAY();
64826481
}
64836482
array_init(return_value);
64846483

0 commit comments

Comments
 (0)