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

Missed PHPDoc argument headers in method graphQlQuery #244

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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