Skip to content

Commit

Permalink
Solved phpstan issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Edinger committed Sep 9, 2024
1 parent be4dd9c commit 985d551
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Models/Contacts/ContactIdentifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public static function link(array $params): ContactIdentifier
}

/**
* @param array $params
* @param array<string, string> $params
* @return ContactIdentifier
* @throws MaintenanceModeException|GuzzleException|PiggyRequestException|PiggyRequestException
*/
Expand All @@ -113,7 +113,7 @@ public static function unlink(array $params): ContactIdentifier
}

/**
* @param array $params
* @param array<string, string> $params
* @return ContactIdentifier
* @throws MaintenanceModeException|GuzzleException|PiggyRequestException|PiggyRequestException
*/
Expand Down
8 changes: 7 additions & 1 deletion src/Resources/OAuth/Contacts/ContactIdentifiersResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ public function link(string $contactIdentifierValue, string $contactUuid): Conta
return $mapper->map($response->getData());
}

/**
* @param string $contactIdentifierValue
* @return ContactIdentifier
* @throws PiggyRequestException
*/
public function unlink(string $contactIdentifierValue): ContactIdentifier
{
$response = $this->client->put("$this->resourceUri/unlink", [
Expand All @@ -75,7 +80,8 @@ public function unlink(string $contactIdentifierValue): ContactIdentifier
}

/**
* @return null
* @param string $contactIdentifierValue
* @return mixed|mixed[]|\stdClass
* @throws PiggyRequestException
*/
public function delete(string $contactIdentifierValue)
Expand Down

0 comments on commit 985d551

Please sign in to comment.