From: Eileen McNaughton Date: Tue, 28 Feb 2023 02:24:31 +0000 (+1300) Subject: Remove 2020-deprecated handline of legacyAddressCreate X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=066e5b0f304d022c718c68aad73f71d378c4849f;p=civicrm-core.git Remove 2020-deprecated handline of legacyAddressCreate --- diff --git a/CRM/Core/BAO/Address.php b/CRM/Core/BAO/Address.php index e44f9c90d2..122d3375ce 100644 --- a/CRM/Core/BAO/Address.php +++ b/CRM/Core/BAO/Address.php @@ -33,12 +33,8 @@ class CRM_Core_BAO_Address extends CRM_Core_DAO_Address { * @return array|NULL|self * array of created address */ - public static function create(&$params, $fixAddress = TRUE) { - if (!isset($params['address']) || !is_array($params['address'])) { - return self::add($params, $fixAddress); - } - CRM_Core_Error::deprecatedFunctionWarning('Use legacyCreate if not doing a single crud action'); - return self::legacyCreate($params, $fixAddress); + public static function create(array &$params, $fixAddress = TRUE) { + return self::add($params, $fixAddress); } /**