Skip to content

Commit

Permalink
AnswerInlineQuery: fixed return type to $results
Browse files Browse the repository at this point in the history
  • Loading branch information
DJTommek committed Apr 13, 2023
1 parent 086df47 commit d1cad1c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Telegram/Methods/AnswerInlineQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class AnswerInlineQuery extends TelegramMethods

/**
* A JSON-serialized array (of InlineQueryResult) of results for the inline query
* @var array[]
* @var array[]|string
*/
protected $results = [];

Expand Down Expand Up @@ -112,9 +112,9 @@ public function addResult(Result $result): AnswerInlineQuery
/**
* Use this method to get list of added results
*
* @return AnswerInlineQuery[]
* @return AnswerInlineQuery[]|string String is JSON encoded representation of array of objects
*/
public function getResults(): array
public function getResults()
{
return $this->results;
}
Expand Down

0 comments on commit d1cad1c

Please sign in to comment.