Replace CRM_Utils_Array::value with ?? in variable assignments
[civicrm-core.git] / CRM / Contribute / Form / Contribution / ThankYou.php
index deb0d26bcee10f0ef9d486b299c4b95df24416dd..41d8077543aea03efa981a353d76f6bddf282c1f 100644 (file)
@@ -204,7 +204,7 @@ class CRM_Contribute_Form_Contribution_ThankYou extends CRM_Contribute_Form_Cont
       $this->buildCustom($this->_values['onbehalf_profile_id'], 'onbehalfProfile', TRUE, 'onbehalf', $fieldTypes);
     }
 
-    $this->_trxnId = CRM_Utils_Array::value('trxn_id', $this->_params);
+    $this->_trxnId = $this->_params['trxn_id'] ?? NULL;
 
     $this->assign('trxn_id', $this->_trxnId);