projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
01f1b06
)
Pass remove-by-reference
author
Eileen McNaughton
<emcnaughton@wikimedia.org>
Fri, 21 Jan 2022 03:01:57 +0000
(16:01 +1300)
committer
Eileen McNaughton
<emcnaughton@wikimedia.org>
Fri, 21 Jan 2022 05:49:12 +0000
(18:49 +1300)
api/v3/utils.php
patch
|
blob
|
blame
|
history
diff --git
a/api/v3/utils.php
b/api/v3/utils.php
index 83a212f151eac7a2e225eeaf779588347fbd12d2..03a25ae1ec9988b53d007ee975bba09ebfa47329 100644
(file)
--- 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 value
s.
+ *
Copy values (other than id) from params to values if they exist in field
s.
*
* @param array $fields
* @param array $params
* @param array $values
*
- * @return
B
ool
+ * @return
b
ool
*/
-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);