i wrote a simple module to override this core Model class, but on frontend it shows this error message:
"Fatal error: Uncaught TypeError: Argument 3 passed to Magento\Quote\Model\Quote\ShippingAssignment\ShippingProcessor::__construct() must be an instance of Magento\Quote\Model\ShippingMethodManagement, instance of shipping\module\Model\ShippingMethodManagement\Interceptor ....."
HERE IS MY 'di.xml' file content:
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
<preference for="Magento\Quote\Model\ShippingMethodManagement" type="shipping\module\Model\ShippingMethodManagement" />
</config>