Merge pull request #20760 from eileenmcnaughton/dep
[civicrm-core.git] / Civi / Test / ContactTestTrait.php
index 4985acc70ab8cda16576627a63aedc741b75e7c0..d48eba1add088d8077b9ea861b03463557d6f024 100644 (file)
@@ -18,12 +18,14 @@ trait ContactTestTrait {
   /**
    * Emulate a logged in user since certain functions use that.
    * value to store a record in the DB (like activity)
+   *
    * @see https://issues.civicrm.org/jira/browse/CRM-8180
    *
    * @return int
    *   Contact ID of the created user.
+   * @throws \CiviCRM_API3_Exception
    */
-  public function createLoggedInUser() {
+  public function createLoggedInUser(): int {
     $params = [
       'first_name' => 'Logged In',
       'last_name' => 'User ' . rand(),