From f774b6395fbe9aaf6a30f8b0b49b242ecc1475cc Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Mon, 7 Jun 2021 04:42:55 +0000 Subject: [PATCH] [php8-compact][REF] Fix another couple of places where by there are required variables in php function declaration after optional ones --- CRM/Core/Form/RecurringEntity.php | 2 +- CRM/Utils/Mail/Incoming.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Core/Form/RecurringEntity.php b/CRM/Core/Form/RecurringEntity.php index 37532c8749..4e663693a8 100644 --- a/CRM/Core/Form/RecurringEntity.php +++ b/CRM/Core/Form/RecurringEntity.php @@ -321,7 +321,7 @@ class CRM_Core_Form_RecurringEntity { * * @throws \CiviCRM_API3_Exception */ - public static function postProcess($params = [], $type, $linkedEntities = []) { + public static function postProcess($params, $type, $linkedEntities = []) { // Check entity_id not present in params take it from class variable if (empty($params['entity_id'])) { $params['entity_id'] = self::$_entityId; diff --git a/CRM/Utils/Mail/Incoming.php b/CRM/Utils/Mail/Incoming.php index a119610812..1b5b71f1bf 100644 --- a/CRM/Utils/Mail/Incoming.php +++ b/CRM/Utils/Mail/Incoming.php @@ -446,7 +446,7 @@ class CRM_Utils_Mail_Incoming { * * @return int|null */ - public static function getContactID($email, $name = NULL, $create = TRUE, &$mail) { + public static function getContactID($email, $name, $create, &$mail) { $dao = CRM_Contact_BAO_Contact::matchContactOnEmail($email, 'Individual'); $contactID = NULL; -- 2.25.1