File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
dev/tests/api-functional/framework/Magento/TestFramework/TestCase Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ abstract class GraphQlAbstract extends WebapiAbstract
33
33
* @param string $query
34
34
* @param array $variables
35
35
* @param string $operationName
36
+ * @param array $headers
36
37
* @return array|int|string|float|bool GraphQL call results
37
38
* @throws \Exception
38
39
*/
@@ -51,11 +52,14 @@ public function graphQlQuery(
51
52
}
52
53
53
54
/**
55
+ * Compose headers
56
+ *
57
+ * @param array $headers
54
58
* @return string[]
55
59
*/
56
- private function composeHeaders ($ headers )
60
+ private function composeHeaders (array $ headers ): array
57
61
{
58
- $ headersArray =[];
62
+ $ headersArray = [];
59
63
foreach ($ headers as $ key => $ value ) {
60
64
$ headersArray [] = sprintf ('%s: %s ' , $ key , $ value );
61
65
}
You can’t perform that action at this time.
0 commit comments