Question

I am having this issue after updating Magento from 2.3 to 2.3.2

Fatal error:

Declaration of Magento\QuoteGraphQl\Model\Cart\SetShippingAddressOnCart::execute(Magento\Framework\GraphQl\Query\Resolver\ContextInterface $context, Magento\Quote\Api\Data\CartInterface $cart, array $shippingAddresses):

void must be compatible with Magento\QuoteGraphQl\Model\Cart\SetShippingAddressesOnCartInterface::execute(Magento\GraphQl\Model\Query\ContextInterface $context, Magento\Quote\Api\Data\CartInterface $cart, array $shippingAddressesInput):

void in /my/folder/public_html/app/code/Magento/QuoteGraphQl/Model/Cart/SetShippingAddressOnCart.php on line 20

I can't figure out even what it mean.

Is it from third-party module conflict or Magento native?

Any help please?

Was it helpful?

Solution

Where did you get the code from? This error should not happen. If you compare your /my/folder/public_html/app/code/Magento/QuoteGraphQl/Model/Cart/SetShippingAddressOnCart.php file with the M2 one on github you will see some difrence.

OTHER TIPS

Backup and delete the file /vendor/magento/module-quote-graph-ql/Model/Cart/SetShippingAddressOnCart.php

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top