mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
ext/standard: replace RETVAL_EMPTY_ARRAY() + return with RETURN_EMPTY_ARRAY() (#21464)
This commit is contained in:
@@ -6477,8 +6477,7 @@ PHP_FUNCTION(array_filter)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (zend_hash_num_elements(Z_ARRVAL_P(array)) == 0) {
|
if (zend_hash_num_elements(Z_ARRVAL_P(array)) == 0) {
|
||||||
RETVAL_EMPTY_ARRAY();
|
RETURN_EMPTY_ARRAY();
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
array_init(return_value);
|
array_init(return_value);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user