From c7ca9aebc46156866ae9c68152ea5874931dff1d Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Sat, 24 Jul 2021 16:19:37 +1200 Subject: [PATCH] [NFC] Remove exceptions from comments callApiSuccess now uses fail rather than throwing an exception so we don't need these here --- Civi/Test/ContactTestTrait.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Civi/Test/ContactTestTrait.php b/Civi/Test/ContactTestTrait.php index bd8d5bb16f..1073bab350 100644 --- a/Civi/Test/ContactTestTrait.php +++ b/Civi/Test/ContactTestTrait.php @@ -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); } -- 2.25.1