Use ?? operator instead of CRM_Utils_Array::value() in return statements
[civicrm-core.git] / CRM / Report / Utils / Report.php
index 276ef7fe6bca7781bc3a0eb3ec1daedfcfd14859..329bf0f83575839696effa228a7d25970cfdb0f8 100644 (file)
@@ -99,7 +99,7 @@ WHERE  TRIM(BOTH '/' FROM CONCAT(report_id, '/', name)) = %1";
       $params = [1 => [$path, 'String']];
       $valId[$path] = CRM_Core_DAO::singleValueQuery($sql, $params);
     }
-    return CRM_Utils_Array::value($path, $valId);
+    return $valId[$path] ?? NULL;
   }
 
   /**