From 6afb5ccf10e07b6e2b7afcd673dfa9f476f3679a Mon Sep 17 00:00:00 2001 From: ArnabChatterjee20k Date: Mon, 9 Feb 2026 13:08:02 +0530 Subject: [PATCH] updated the comments --- src/Appwrite/Messaging/Adapter/Realtime.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Appwrite/Messaging/Adapter/Realtime.php b/src/Appwrite/Messaging/Adapter/Realtime.php index 8f6add2201..e61cfdc116 100644 --- a/src/Appwrite/Messaging/Adapter/Realtime.php +++ b/src/Appwrite/Messaging/Adapter/Realtime.php @@ -358,14 +358,14 @@ class Realtime extends MessagingAdapter if (\array_key_exists($paramKey, $reservedParamExpectedTypes) && $params !== null) { $expectedType = $reservedParamExpectedTypes[$paramKey]; - $isRoutingType = match ($expectedType) { + $isExpectedType = match ($expectedType) { 'array' => \is_array($params), 'string' => \is_string($params), default => false, }; - // If the value matches the expected routing type, do NOT use it as queries - if ($isRoutingType) { + // If the value matches the expected type dont use it the queries + if ($isExpectedType) { $params = null; } }