From f14cf58304e7ec6361b4f4d6c302f776b02762c1 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Fri, 21 Jan 2022 16:01:57 +1300 Subject: [PATCH] Pass remove-by-reference --- api/v3/utils.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/v3/utils.php b/api/v3/utils.php index 83a212f151..03a25ae1ec 100644 --- a/api/v3/utils.php +++ b/api/v3/utils.php @@ -445,15 +445,15 @@ function _civicrm_api3_filter_fields_for_bao($entity, &$params, &$values) { } /** - * Store values. + * Copy values (other than id) from params to values if they exist in fields. * * @param array $fields * @param array $params * @param array $values * - * @return Bool + * @return bool */ -function _civicrm_api3_store_values(&$fields, &$params, &$values) { +function _civicrm_api3_store_values(array $fields, array $params, &$values): bool { $valueFound = FALSE; $keys = array_intersect_key($params, $fields); -- 2.25.1