From 4e797836174cb88dba6d410ee443f437c864a83f Mon Sep 17 00:00:00 2001 From: netkas Date: Sat, 8 Mar 2025 00:38:07 -0500 Subject: [PATCH] Remove UUID validation from EncryptionDeclineChannel to streamline error handling https://github.com/nosial/Socialbox-PHP/issues/21 --- .../EncryptionChannel/EncryptionDeclineChannel.php | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/Socialbox/Classes/StandardMethods/EncryptionChannel/EncryptionDeclineChannel.php b/src/Socialbox/Classes/StandardMethods/EncryptionChannel/EncryptionDeclineChannel.php index a93b3fa..26f537b 100644 --- a/src/Socialbox/Classes/StandardMethods/EncryptionChannel/EncryptionDeclineChannel.php +++ b/src/Socialbox/Classes/StandardMethods/EncryptionChannel/EncryptionDeclineChannel.php @@ -5,12 +5,10 @@ use Exception; use Socialbox\Abstracts\Method; use Socialbox\Classes\Logger; - use Socialbox\Classes\Validator; use Socialbox\Enums\StandardError; use Socialbox\Enums\Status\EncryptionChannelStatus; use Socialbox\Exceptions\DatabaseOperationException; use Socialbox\Exceptions\RpcException; - use Socialbox\Exceptions\Standard\InvalidRpcArgumentException; use Socialbox\Exceptions\Standard\MissingRpcArgumentException; use Socialbox\Exceptions\Standard\StandardRpcException; use Socialbox\Interfaces\SerializableInterface; @@ -54,10 +52,6 @@ { throw new MissingRpcArgumentException('channel_uuid'); } - elseif(!Validator::validateUuid($rpcRequest->getParameter('channel_uuid'))) - { - throw new InvalidRpcArgumentException('channel_uuid', 'The given channel uuid is not a valid UUID V4'); - } try { @@ -143,10 +137,6 @@ { throw new MissingRpcArgumentException('channel_uuid'); } - elseif(!Validator::validateUuid($rpcRequest->getParameter('channel_uuid'))) - { - throw new InvalidRpcArgumentException('channel_uuid', 'The given channel uuid is not a valid UUID V4'); - } try {