[NFC] Remove exceptions from comments
authorEileen McNaughton <emcnaughton@wikimedia.org>
Sat, 24 Jul 2021 04:19:37 +0000 (16:19 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Sat, 24 Jul 2021 04:19:37 +0000 (16:19 +1200)
callApiSuccess now uses fail rather than throwing an exception so
we don't need these here

Civi/Test/ContactTestTrait.php

index bd8d5bb16fcf21a708805d6274ca09a2b089f072..1073bab350f3ffdd5e0ff72ee9fbab61e744a2ce 100644 (file)
@@ -23,7 +23,6 @@ trait ContactTestTrait {
    *
    * @return int
    *   Contact ID of the created user.
-   * @throws \CiviCRM_API3_Exception
    */
   public function createLoggedInUser(): int {
     $params = [
@@ -77,10 +76,8 @@ trait ContactTestTrait {
    *
    * @return int
    *   id of Individual created
-   *
-   * @throws \CiviCRM_API3_Exception
    */
-  public function individualCreate($params = [], $seq = 0, $random = FALSE): int {
+  public function individualCreate(array $params = [], $seq = 0, $random = FALSE): int {
     $params = array_merge($this->sampleContact('Individual', $seq, $random), $params);
     return $this->_contactCreate($params);
   }