Skip to content

Commit d621ef1

Browse files
committed
MC-21524: Schema introspection return incomplete results
- fixed static fixes phpcs ignore
1 parent 8683e0b commit d621ef1

File tree

1 file changed

+1
-2
lines changed
  • lib/internal/Magento/Framework/GraphQl/Query

1 file changed

+1
-2
lines changed

lib/internal/Magento/Framework/GraphQl/Query/Fields.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,9 @@ class Fields
2828
*
2929
* @return void
3030
*/
31-
// phpcs:ignore Generic.CodeAnalysis.EmptyStatement
3231
public function setQuery($query, array $variables = null)
3332
{
3433
$queryFields = [];
35-
3634
try {
3735
$queryAst = \GraphQL\Language\Parser::parse(new \GraphQL\Language\Source($query ?: '', 'GraphQL'));
3836
\GraphQL\Language\Visitor::visit(
@@ -48,6 +46,7 @@ public function setQuery($query, array $variables = null)
4846
if (isset($variables)) {
4947
$queryFields = array_merge($queryFields, $this->extractVariables($variables));
5048
}
49+
// phpcs:ignore Magento2.CodeAnalysis.EmptyBlock
5150
} catch (\Exception $e) {
5251
// If a syntax error is encountered do not collect fields
5352
}

0 commit comments

Comments
 (0)