From 93b032bd14b2a5321edc82b313afdf74d7934189 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Thu, 9 Feb 2023 18:02:14 +1300 Subject: [PATCH] Do not use reference for Object parameter, deathto _NULlObject --- CRM/Contact/Page/Inline/Email.php | 2 +- CRM/Utils/Request.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Contact/Page/Inline/Email.php b/CRM/Contact/Page/Inline/Email.php index 7ca97943c1..6e98a2cc46 100644 --- a/CRM/Contact/Page/Inline/Email.php +++ b/CRM/Contact/Page/Inline/Email.php @@ -27,7 +27,7 @@ class CRM_Contact_Page_Inline_Email extends CRM_Core_Page { */ public function run() { // get the emails for this contact - $contactId = CRM_Utils_Request::retrieve('cid', 'Positive', CRM_Core_DAO::$_nullObject, TRUE); + $contactId = CRM_Utils_Request::retrieve('cid', 'Positive', NULL, TRUE); $locationTypes = CRM_Core_PseudoConstant::get('CRM_Core_DAO_Address', 'location_type_id', ['labelColumn' => 'display_name']); diff --git a/CRM/Utils/Request.php b/CRM/Utils/Request.php index b5f22a3f0f..0c60dd710d 100644 --- a/CRM/Utils/Request.php +++ b/CRM/Utils/Request.php @@ -69,7 +69,7 @@ class CRM_Utils_Request { * * @throws \CRM_Core_Exception */ - public static function retrieve($name, $type, &$store = NULL, $abort = FALSE, $default = NULL, $method = 'REQUEST') { + public static function retrieve($name, $type, $store = NULL, $abort = FALSE, $default = NULL, $method = 'REQUEST') { $value = NULL; switch ($method) { -- 2.25.1