From e77a73c9db6acdf2da04c78c29aa868aaa0d9315 Mon Sep 17 00:00:00 2001 From: Tobias Graml Date: Thu, 19 Oct 2023 17:12:27 +0200 Subject: [PATCH] Change type for variables back to array --- src/Operation/AbstractSearchOperation.php | 2 +- src/Operation/SearchRequest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Operation/AbstractSearchOperation.php b/src/Operation/AbstractSearchOperation.php index 8752cf34..2b72c70a 100644 --- a/src/Operation/AbstractSearchOperation.php +++ b/src/Operation/AbstractSearchOperation.php @@ -102,7 +102,7 @@ public function execute() abstract public function getQuery(); /** - * @return mixed + * @return array */ abstract public function getVariables(); diff --git a/src/Operation/SearchRequest.php b/src/Operation/SearchRequest.php index eba62b35..ae9e3466 100644 --- a/src/Operation/SearchRequest.php +++ b/src/Operation/SearchRequest.php @@ -48,7 +48,7 @@ class SearchRequest * @param string $query * @param stdClass $variables */ - public function __construct($query, stdClass $variables) + public function __construct($query, array $variables) { $this->request = ['query' => $query, 'variables' => $variables]; }