Skip to content

Commit 75c7a63

Browse files
committed
MC-18945: Reading deprecated annotation in schema
- fixed static failures on jenkins builds
1 parent 8bfc344 commit 75c7a63

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

dev/tests/integration/testsuite/Magento/Framework/GraphQl/Config/GraphQlReaderTest.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -201,12 +201,13 @@ enumValues(includeDeprecated: true) {
201201
foreach ($sortFields as $sortField) {
202202
isset($searchTerm[$sortField]) && is_array($searchTerm[$sortField])
203203
? usort(
204-
$searchTerm[$sortField], function ($a, $b) {
205-
$cmpField = 'name';
206-
return isset($a[$cmpField]) && isset($b[$cmpField])
204+
$searchTerm[$sortField],
205+
function ($a, $b) {
206+
$cmpField = 'name';
207+
return isset($a[$cmpField]) && isset($b[$cmpField])
207208
? strcmp($a[$cmpField], $b[$cmpField]) : 0;
208209
}
209-
) : null;
210+
) : null;
210211
}
211212

212213
$this->assertTrue(

0 commit comments

Comments
 (0)