Update addressBookAddContact method to return contact UUID instead of boolean
Some checks are pending
CI / check-phpunit (push) Waiting to run
CI / check-phpdoc (push) Waiting to run
CI / generate-phpdoc (push) Blocked by required conditions
CI / test (push) Blocked by required conditions
CI / release-documentation (push) Blocked by required conditions
CI / release (push) Waiting to run
CI / debug (push) Waiting to run
CI / release_executable (push) Waiting to run
CI / debug_executable (push) Waiting to run
CI / release-artifacts (push) Blocked by required conditions
Some checks are pending
CI / check-phpunit (push) Waiting to run
CI / check-phpdoc (push) Waiting to run
CI / generate-phpdoc (push) Blocked by required conditions
CI / test (push) Blocked by required conditions
CI / release-documentation (push) Blocked by required conditions
CI / release (push) Waiting to run
CI / debug (push) Waiting to run
CI / release_executable (push) Waiting to run
CI / debug_executable (push) Waiting to run
CI / release-artifacts (push) Blocked by required conditions
This commit is contained in:
parent
4a7fbd9970
commit
604f75f5c8
1 changed files with 2 additions and 2 deletions
|
@ -194,10 +194,10 @@
|
||||||
*
|
*
|
||||||
* @param PeerAddress|string $peer The address of the peer to add as a contact
|
* @param PeerAddress|string $peer The address of the peer to add as a contact
|
||||||
* @param string|ContactRelationshipType|null $relationship Optional. The relationship for the peer
|
* @param string|ContactRelationshipType|null $relationship Optional. The relationship for the peer
|
||||||
* @return bool Returns True if the contact was created, False if it already exists
|
* @return string Returns the contact uuid if the contact was created, False if it already exists
|
||||||
* @throws RpcException Thrown if there was an error with the RPC request
|
* @throws RpcException Thrown if there was an error with the RPC request
|
||||||
*/
|
*/
|
||||||
public function addressBookAddContact(PeerAddress|string $peer, null|string|ContactRelationshipType $relationship=ContactRelationshipType::MUTUAL): bool
|
public function addressBookAddContact(PeerAddress|string $peer, null|string|ContactRelationshipType $relationship=ContactRelationshipType::MUTUAL): string
|
||||||
{
|
{
|
||||||
if($peer instanceof PeerAddress)
|
if($peer instanceof PeerAddress)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue