Skip to content

Commit

Permalink
Change type for variables back to array
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasGraml11 committed Oct 19, 2023
1 parent cdc4517 commit e77a73c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Operation/AbstractSearchOperation.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public function execute()
abstract public function getQuery();

/**
* @return mixed
* @return array
*/
abstract public function getVariables();

Expand Down
2 changes: 1 addition & 1 deletion src/Operation/SearchRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class SearchRequest
* @param string $query
* @param stdClass $variables

Check warning on line 49 in src/Operation/SearchRequest.php

View workflow job for this annotation

GitHub Actions / Phan Analysis

Doc-block of $variables in __construct contains phpdoc param type \stdClass which is incompatible with the param type array declared in the signature
*/
public function __construct($query, stdClass $variables)
public function __construct($query, array $variables)
{
$this->request = ['query' => $query, 'variables' => $variables];
}
Expand Down

0 comments on commit e77a73c

Please sign in to comment.