From 5109796f76ab337e9da41854870b4a88ef2980b2 Mon Sep 17 00:00:00 2001 From: netkas Date: Fri, 7 Mar 2025 14:56:12 -0500 Subject: [PATCH] Cast channel UUID and public encryption key to string in EncryptionAcceptChannel https://github.com/nosial/Socialbox-PHP/issues/14 --- .../EncryptionChannel/EncryptionAcceptChannel.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Socialbox/Classes/StandardMethods/EncryptionChannel/EncryptionAcceptChannel.php b/src/Socialbox/Classes/StandardMethods/EncryptionChannel/EncryptionAcceptChannel.php index f2043cc..a5e8254 100644 --- a/src/Socialbox/Classes/StandardMethods/EncryptionChannel/EncryptionAcceptChannel.php +++ b/src/Socialbox/Classes/StandardMethods/EncryptionChannel/EncryptionAcceptChannel.php @@ -87,8 +87,8 @@ { $rpcClient = Socialbox::getExternalSession($encryptionChannel->getCallingPeerAddress()->getDomain()); $rpcClient->encryptionAcceptChannel( - channelUuid: $rpcRequest->getParameter('channel_uuid'), - publicEncryptionKey: $rpcRequest->getParameter('public_encryption_key'), + channelUuid: (string)$rpcRequest->getParameter('channel_uuid'), + publicEncryptionKey: (string)$rpcRequest->getParameter('public_encryption_key'), identifiedAs: $receivingPeer->getAddress() ); }