Replace CRM_Utils_Array::value with ?? in variable assignments
[civicrm-core.git] / CRM / Contact / Form / Task / LabelCommon.php
index b3567351766648eee82fe366608d46692a2b2d5b..ddc289154d04f0b7e39dbb9806778ec6a04ee8de 100644 (file)
@@ -149,7 +149,7 @@ class CRM_Contact_Form_Task_LabelCommon {
           $details[$value]["custom_{$cfID}"] = CRM_Core_BAO_CustomField::displayValue($details[$value]["custom_{$cfID}"], $cfID);
         }
       }
-      $contact = CRM_Utils_Array::value($value, $details);
+      $contact = $details[$value] ?? NULL;
 
       if (is_a($contact, 'CRM_Core_Error')) {
         return NULL;