Fix processCaseActivity docblock
authorColeman Watts <coleman@civicrm.org>
Sun, 14 Aug 2022 03:40:50 +0000 (23:40 -0400)
committerColeman Watts <coleman@civicrm.org>
Sun, 14 Aug 2022 03:40:50 +0000 (23:40 -0400)
CRM/Case/BAO/Case.php

index b2a0db357b9aa570c8a1ca0af80cd540874df229..a437307553784ec7555652d482ef3a83561ce925 100644 (file)
@@ -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'];