Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix > Exception #0 (BadMethodCallException): Missing required argument $msrpPriceCalculators of Magento\Msrp\Pricing\MsrpPriceCalculator. #22197

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix > Exception #0 (BadMethodCallException): Missing required argumen…
…t of Magento\Msrp\Pricing\MsrpPriceCalculator.
  • Loading branch information
lfluvisotto committed Apr 8, 2019
commit 1c98b32f62a4f2433adb4b01d144fcfc9e12ebf7
2 changes: 1 addition & 1 deletion app/code/Magento/Msrp/Pricing/MsrpPriceCalculator.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class MsrpPriceCalculator implements MsrpPriceCalculatorInterface
/**
* @param array $msrpPriceCalculators
*/
public function __construct(array $msrpPriceCalculators)
public function __construct(array $msrpPriceCalculators = [])
{
$this->msrpPriceCalculators = $this->getMsrpPriceCalculators($msrpPriceCalculators);
}
Expand Down