Skip to content

Commit 0941fc9

Browse files
Fixing static test failures
1 parent 01f4016 commit 0941fc9

File tree

3 files changed

+3
-12
lines changed

3 files changed

+3
-12
lines changed

lib/internal/Magento/Framework/GraphQl/Type/Definition/FloatType.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ public function parseValue($value): float
4141
* @param array|null $variables
4242
* @return float
4343
* @throws Exception
44-
* @SuppressWarnings(PHPMD.EmptyCatchBlock)
4544
*/
4645
public function parseLiteral(Node $valueNode, ?array $variables = null): float
4746
{
@@ -55,9 +54,7 @@ public function parseLiteral(Node $valueNode, ?array $variables = null): float
5554
'loc' => $valueNode->loc
5655
]);
5756
}
58-
} catch (Exception $e) {
59-
// If parsing fails let it go through the regular method to throw the expected error
60-
}
57+
} catch (Exception $e) {} // @codingStandardsIgnoreLine
6158
return parent::parseLiteral($valueNode, $variables);
6259
}
6360
}

lib/internal/Magento/Framework/GraphQl/Type/Definition/IntType.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ public function parseValue($value): int
4040
* @param array|null $variables
4141
* @return int
4242
* @throws Exception
43-
* @SuppressWarnings(PHPMD.EmptyCatchBlock)
4443
*/
4544
public function parseLiteral(Node $valueNode, ?array $variables = null): int
4645
{
@@ -53,9 +52,7 @@ public function parseLiteral(Node $valueNode, ?array $variables = null): int
5352
'loc' => $valueNode->loc
5453
]);
5554
}
56-
} catch (Exception $e) {
57-
// If parsing fails let it go through the regular method to throw the expected error
58-
}
55+
} catch (Exception $e) {} // @codingStandardsIgnoreLine
5956
return parent::parseLiteral($valueNode, $variables);
6057
}
6158
}

lib/internal/Magento/Framework/GraphQl/Type/Definition/StringType.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ public function parseValue($value): string
4040
* @param array|null $variables
4141
* @return string
4242
* @throws Exception
43-
* @SuppressWarnings(PHPMD.EmptyCatchBlock)
4443
*/
4544
public function parseLiteral(Node $valueNode, ?array $variables = null): string
4645
{
@@ -53,9 +52,7 @@ public function parseLiteral(Node $valueNode, ?array $variables = null): string
5352
'loc' => $valueNode->loc
5453
]);
5554
}
56-
} catch (Exception $e) {
57-
// If parsing fails let it go through the regular method to throw the expected error
58-
}
55+
} catch (Exception $e) {} // @codingStandardsIgnoreLine
5956
return parent::parseLiteral($valueNode, $variables);
6057
}
6158
}

0 commit comments

Comments
 (0)