Skip to content

Commit

Permalink
Merge pull request #18485 from eileenmcnaughton/ref2
Browse files Browse the repository at this point in the history
dev/core#2043 remove pass-by-reference
  • Loading branch information
colemanw authored Sep 18, 2020
2 parents e68535e + 349e79a commit 38013e3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions CRM/Core/BAO/Block.php
Original file line number Diff line number Diff line change
Expand Up @@ -192,14 +192,14 @@ public static function getBlockIds($blockName, $contactId = NULL, $entityElement
* @param string $blockName
* Block name.
* @param array $params
* (reference ) an assoc array of name/value pairs.
* @param null $entity
* Array of name/value pairs.
* @param string $entity
* @param int $contactId
*
* @return object
* CRM_Core_BAO_Block object on success, null otherwise
* @return array|null
* Array of created location entities or NULL if none to create.
*/
public static function create($blockName, &$params, $entity = NULL, $contactId = NULL) {
public static function create($blockName, $params, $entity = NULL, $contactId = NULL) {
if (!self::blockExists($blockName, $params)) {
return NULL;
}
Expand Down

0 comments on commit 38013e3

Please sign in to comment.