[php8-compact][REF] Fix another couple of places where by there are required variable...
authorSeamus Lee <seamuslee001@gmail.com>
Mon, 7 Jun 2021 04:42:55 +0000 (04:42 +0000)
committerSeamus Lee <seamuslee001@gmail.com>
Mon, 7 Jun 2021 04:42:55 +0000 (04:42 +0000)
CRM/Core/Form/RecurringEntity.php
CRM/Utils/Mail/Incoming.php

index 37532c874988a38adc878cc905e9bf8b5a58d3dd..4e663693a82f868e9643b680a19c56c3d67e2a5d 100644 (file)
@@ -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;
index a11961081250ef2988a6e0ff9fdcfc1ea7d0b544..1b5b71f1bf3f3cd407132227d72a8e1d248e7bc6 100644 (file)
@@ -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;