From 8b4b82eefb4c877c9881cffd4e85a9b1a5a041fe Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Wed, 15 Mar 2023 09:39:37 +1100 Subject: [PATCH] [REF] Fix issue where the strict typing was causing false notices to appear in Config And Log --- CRM/Core/Payment/PayPalIPN.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Core/Payment/PayPalIPN.php b/CRM/Core/Payment/PayPalIPN.php index 6dd2acae1b..6b1c86aaff 100644 --- a/CRM/Core/Payment/PayPalIPN.php +++ b/CRM/Core/Payment/PayPalIPN.php @@ -445,7 +445,7 @@ class CRM_Core_Payment_PayPalIPN extends CRM_Core_Payment_BaseIPN { if (!$contribution->find(TRUE)) { throw new CRM_Core_Exception('Failure: Could not find contribution record for ' . (int) $contribution->id, NULL, ['context' => "Could not find contribution record: {$contribution->id} in IPN request: "]); } - if ($contribution->contact_id !== $this->getContactID()) { + if ((int) $contribution->contact_id !== $this->getContactID()) { CRM_Core_Error::debug_log_message("Contact ID in IPN not found but contact_id found in contribution."); } return $contribution; -- 2.25.1