Skip to content
This repository has been archived by the owner on Dec 19, 2019. It is now read-only.

Commit

Permalink
GraphQl: Missed PHPDoc argument headers in method graphQlQuery
Browse files Browse the repository at this point in the history
  • Loading branch information
Valeriy Nayda committed Nov 13, 2018
1 parent dc51f3e commit 6062a1e
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,14 @@ public function graphQlQuery(
}

/**
* Compose headers
*
* @param array $headers
* @return string[]
*/
private function composeHeaders($headers)
private function composeHeaders(array $headers): array
{
$headersArray =[];
$headersArray = [];
foreach ($headers as $key => $value) {
$headersArray[] = sprintf('%s: %s', $key, $value);
}
Expand Down

0 comments on commit 6062a1e

Please sign in to comment.