Replace CRM_Utils_Array::value with ?? in variable assignments
[civicrm-core.git] / CRM / Contribute / StateMachine / Search.php
index f73e871b0f4ff6f99d407d123ade8a1b9f1e8980..86b60a97e0a81d6d8a3c743459283164d52d7666 100644 (file)
@@ -68,7 +68,7 @@ class CRM_Contribute_StateMachine_Search extends CRM_Core_StateMachine {
    */
   public function taskName($controller, $formName = 'Search') {
     // total hack, check POST vars and then session to determine stuff
-    $value = CRM_Utils_Array::value('task', $_POST);
+    $value = $_POST['task'] ?? NULL;
     if (!isset($value)) {
       $value = $this->_controller->get('task');
     }