Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dev/core#2043 remove pass-by-reference #18485

Merged
merged 1 commit into from
Sep 18, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions CRM/Core/BAO/Block.php
Original file line number Diff line number Diff line change
Expand Up @@ -197,14 +197,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