We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d0c52a6 + 2e8bb57 commit b6ec026Copy full SHA for b6ec026
dev/tests/api-functional/framework/Magento/TestFramework/TestCase/GraphQlAbstract.php
@@ -33,6 +33,7 @@ abstract class GraphQlAbstract extends WebapiAbstract
33
* @param string $query
34
* @param array $variables
35
* @param string $operationName
36
+ * @param array $headers
37
* @return array|int|string|float|bool GraphQL call results
38
* @throws \Exception
39
*/
@@ -51,11 +52,14 @@ public function graphQlQuery(
51
52
}
53
54
/**
55
+ * Compose headers
56
+ *
57
58
* @return string[]
59
- private function composeHeaders($headers)
60
+ private function composeHeaders(array $headers): array
61
{
- $headersArray =[];
62
+ $headersArray = [];
63
foreach ($headers as $key => $value) {
64
$headersArray[] = sprintf('%s: %s', $key, $value);
65
0 commit comments