We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31ce134 commit edfda37Copy full SHA for edfda37
app/code/Magento/QuoteGraphQl/Plugin/ShippingMethodValidationRulePlugin.php
@@ -34,6 +34,7 @@ public function __construct(ValidationResultFactory $validationResultFactory)
34
* @param ValidationResult[] $result
35
* @param Quote $quote
36
* @return ValidationResult[]
37
+ * @SuppressWarnings(PHPMD.UnusedFormalParameter)
38
*/
39
public function afterValidate(
40
ShippingMethodValidationRule $subject,
@@ -53,7 +54,6 @@ public function afterValidate(
53
54
return $result;
55
}
56
- // If previously valid, rebuild with a generic error to mark invalid
57
$existing = $result[0] ?? null;
58
if ($existing instanceof ValidationResult && $existing->isValid()) {
59
$result[0] = $this->validationResultFactory->create([
0 commit comments