Closed
Description
Preconditions (*)
Magento 2.3.3 & 2.3-develop
with Developer mode.
Steps to reproduce (*)
- create plugin for
Magento\Ups\Model\Carrier
with custom di.xml
app/code/<vender>/<module>/etc/di.xml
<type name="Magento\Ups\Model\Carrier">
<plugin name="fix-for-Ups" type="<vender>\<module>\Plugin\Carrier\Ups" sortOrder="1" />
</type>
- create class as below mention
namespace <vender>\<module>\Plugin\Carrier;
class Ups
{
public function afterCollectRates(\Magento\Ups\Model\Carrier $subject, $result, $request)
{
return $result;
}
}
Expected result (*)
Plugin should work properly with developer mode
Actual result (*)
Getting below error
1 exception(s): Exception #0 (BadMethodCallException): Missing required argument $data of Magento\Ups\Model\Carrier.
Exception #0 (BadMethodCallException): Missing required argument $data of Magento\Ups\Model\Carrier.
As my understand issue is because of Magento\Ups\Model\Carrier::__construct
last param should be null (newly added in to 2.3.3) $proxyDeferredFactory is not follow compatibility
Metadata
Metadata
Assignees
Labels
The issue has been fixed in 2.4-develop branchGate 2 Passed. Manual verification of the issue description passedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 1 Passed. Automatic verification of issue format passedGate 4. Acknowledged. Issue is added to backlog and ready for developmentIndicates that Pull Request has been created to fix issueThe issue has been reproduced on latest 2.3 release