From: Coleman Watts Date: Sun, 14 Aug 2022 03:40:50 +0000 (-0400) Subject: Fix processCaseActivity docblock X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=cea1a65cab9f73f0ccee2e4fba94613d378980e6;p=civicrm-core.git Fix processCaseActivity docblock --- diff --git a/CRM/Case/BAO/Case.php b/CRM/Case/BAO/Case.php index b2a0db357b..a437307553 100644 --- a/CRM/Case/BAO/Case.php +++ b/CRM/Case/BAO/Case.php @@ -112,14 +112,11 @@ class CRM_Case_BAO_Case extends CRM_Case_DAO_Case { } /** - * Process case activity add/delete - * takes an associative array and - * - * @param array $params - * (reference ) an assoc array of name/value pairs. + * Add a CaseActivity record (skip if already exists). * + * @param array{activity_id: int, case_id: int} $params */ - public static function processCaseActivity(&$params) { + public static function processCaseActivity(array $params): void { $caseActivityDAO = new CRM_Case_DAO_CaseActivity(); $caseActivityDAO->activity_id = $params['activity_id']; $caseActivityDAO->case_id = $params['case_id'];