diff --git a/src/Appwrite/Utopia/Database/Validator/Queries/Types.php b/src/Appwrite/Utopia/Database/Validator/Queries/Types.php index dac4c4bbf6..a70576cd86 100644 --- a/src/Appwrite/Utopia/Database/Validator/Queries/Types.php +++ b/src/Appwrite/Utopia/Database/Validator/Queries/Types.php @@ -17,18 +17,10 @@ class Types extends Validator */ protected array $types; - /** - * @var array - */ - protected array $queries; - - /** - * @var QueryContext - */ protected ?QueryContext $context = null; /** - * @param array $allowedAttributes + * @var array */ protected array $allowedAttributes; @@ -78,7 +70,7 @@ class Types extends Validator } if ($query->isNested()) { - if (!self::isValid($query->getValues())) { + if (!$this->isValid($query->getValues())) { throw new \Exception('Invalid queries'); } }