File tree Expand file tree Collapse file tree 2 files changed +6
-9
lines changed
dev/tests/integration/testsuite/Magento/Framework/GraphQl/Config
lib/internal/Magento/Framework/GraphQlSchemaStitching/GraphQlReader/MetaReader Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -200,11 +200,13 @@ enumValues(includeDeprecated: true) {
200
200
$ sortFields = ['inputFields ' , 'fields ' ];
201
201
foreach ($ sortFields as $ sortField ) {
202
202
isset ($ searchTerm [$ sortField ]) && is_array ($ searchTerm [$ sortField ])
203
- ? usort ($ searchTerm [$ sortField ], function ($ a , $ b ) {
203
+ ? usort (
204
+ $ searchTerm [$ sortField ], function ($ a , $ b ) {
204
205
$ cmpField = 'name ' ;
205
206
return isset ($ a [$ cmpField ]) && isset ($ b [$ cmpField ])
206
207
? strcmp ($ a [$ cmpField ], $ b [$ cmpField ]) : 0 ;
207
- }) : null ;
208
+ }
209
+ ) : null ;
208
210
}
209
211
210
212
$ this ->assertTrue (
@@ -240,18 +242,13 @@ enumValues(includeDeprecated: true) {
240
242
$ expectedOutput
241
243
)
242
244
);
243
-
244
245
}
245
246
246
-
247
247
/**
248
248
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
249
249
*/
250
250
public function testDispatchIntrospectionWithDeprecatedSDL ()
251
251
{
252
-
253
-
254
-
255
252
$ query
256
253
= <<<QUERY
257
254
query IntrospectionQuery {
@@ -368,7 +365,6 @@ enumValues(includeDeprecated: true) {
368
365
$ this ->jsonSerializer ->unserialize ($ response ->getContent ());
369
366
$ expectedOutput = require __DIR__ . '/../_files/schema_response_sdl_deprecated_annotation.php ' ;
370
367
371
-
372
368
//Checks to make sure that the given description exists in the expectedOutput array
373
369
374
370
$ this ->assertTrue (
Original file line number Diff line number Diff line change @@ -100,7 +100,8 @@ public function read(\GraphQL\Type\Definition\FieldDefinition $fieldMeta) : arra
100
100
}
101
101
$ typeMeta = $ argumentMeta ->getType ();
102
102
103
- $ result ['arguments ' ][$ argumentName ] = array_merge_recursive (
103
+ // phpcs:ignore Magento2.Performance.ForeachArrayMerge.ForeachArrayMerge
104
+ $ result ['arguments ' ][$ argumentName ] = array_merge (
104
105
$ result ['arguments ' ][$ argumentName ],
105
106
$ this ->typeMetaReader ->read ($ typeMeta , TypeMetaWrapperReader::ARGUMENT_PARAMETER )
106
107
);
You can’t perform that action at this time.
0 commit comments