Skip to content

Commit

Permalink
ENGCOM-3444: Missed PHPDoc argument headers in method graphQlQuery #244
Browse files Browse the repository at this point in the history
 - Merge Pull Request magento/graphql-ce#244 from VoronoyAlexandr/graphql-ce:graphql_abstract_missed_phpdoc_argument
 - Merged commits:
   1. dc51f3e
   2. 6062a1e
  • Loading branch information
magento-engcom-team committed Nov 13, 2018
2 parents 5f976fa + 6062a1e commit 2e8bb57
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ abstract class GraphQlAbstract extends WebapiAbstract
* @param string $query
* @param array $variables
* @param string $operationName
* @param array $headers
* @return array|int|string|float|bool GraphQL call results
* @throws \Exception
*/
Expand All @@ -51,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 2e8bb57

Please sign in to comment.