Use ?? operator instead of CRM_Utils_Array::value() in return statements
[civicrm-core.git] / CRM / Core / Payment / PayPalProIPN.php
index 42c23e308799ef910f612eaae75f1dd3520857dc..359937e6cb2a3e1523a09e005a3f2d3afe97daed 100644 (file)
@@ -76,7 +76,7 @@ class CRM_Core_Payment_PayPalProIPN extends CRM_Core_Payment_BaseIPN {
       throw new CRM_Core_Exception("Failure: Missing Parameter $name");
     }
     else {
-      return CRM_Utils_Array::value($name, $this->_invoiceData);
+      return $this->_invoiceData[$name] ?? NULL;
     }
   }