cancel
Showing results for 
Search instead for 
Did you mean: 

Dependency Injection Argument 4 passed to Custom\Module\MagentoU\Test::__construct() must be an inst

Dependency Injection Argument 4 passed to Custom\Module\MagentoU\Test::__construct() must be an inst

While working with the magento exercises provided by MagentoU I found issues while working with dependency injection

Argument 4 passed to Custom\Module\MagentoU\Test::__construct() must be an instance of Custom\Module\Api\ProductRepositoryInterface, instance of Magento\Catalog\Model\ProductRepository\Interceptor given .

2 REPLIES 2

Re: Dependency Injection Argument 4 passed to Custom\Module\MagentoU\Test::__construct() must be an

Could you please share your entire code file to debug your issue?
If Issue Solved, Click Kudos/Accept As solutions. Get Magento insight from
Magento 2 Blogs/Tutorial

Re: Dependency Injection Argument 4 passed to Custom\Module\MagentoU\Test::__construct() must be an


@Rakesh Jesadiya wrote:
Could you please share your entire code file to debug your issue?

Please download the code from here