Skip to content

Commit b6ec026

Browse files
author
Valeriy Naida
authored
ENGCOM-3444: Missed PHPDoc argument headers in method graphQlQuery #244
2 parents d0c52a6 + 2e8bb57 commit b6ec026

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

dev/tests/api-functional/framework/Magento/TestFramework/TestCase/GraphQlAbstract.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ abstract class GraphQlAbstract extends WebapiAbstract
3333
* @param string $query
3434
* @param array $variables
3535
* @param string $operationName
36+
* @param array $headers
3637
* @return array|int|string|float|bool GraphQL call results
3738
* @throws \Exception
3839
*/
@@ -51,11 +52,14 @@ public function graphQlQuery(
5152
}
5253

5354
/**
55+
* Compose headers
56+
*
57+
* @param array $headers
5458
* @return string[]
5559
*/
56-
private function composeHeaders($headers)
60+
private function composeHeaders(array $headers): array
5761
{
58-
$headersArray =[];
62+
$headersArray = [];
5963
foreach ($headers as $key => $value) {
6064
$headersArray[] = sprintf('%s: %s', $key, $value);
6165
}

0 commit comments

Comments
 (0)