* @param array $defaults
* (reference ) an assoc array to hold the flattened values.
*
- * @return CRM_Event_DAO_Event
+ * @return CRM_Event_DAO_Event|null
*/
public static function retrieve(&$params, &$defaults) {
$event = new CRM_Event_DAO_Event();
// @todo - the component is enabled check should be done within getIncomeFinancialType
// It looks to me like test cover was NOT added to cover the change
// that added this so we need to assume there is no test cover
- if (array_key_exists('CiviContribute', CRM_Core_Component::getEnabledComponents())) {
+ if (CRM_Core_Component::isEnabled('CiviContribute')) {
return CRM_Financial_BAO_FinancialType::getIncomeFinancialType($props['check_permissions'] ?? TRUE);
}
return [];