Несовместимый тип аргумента: Требуемый тип: \Magento\Catalog\Model\ProductTypes\ConfigInterface. Фактический тип: массив;
Несовместимый тип аргумента: Требуемый тип: \Magento\Wishlist\Model\WishlistFactory. Фактический тип: массив;
Код, ответственный за ошибку, следующий
Код: Выделить всё
public function __construct(
\Magento\Backend\Block\Template\Context $context,
\Magento\Backend\Model\Session\Quote $sessionQuote,
\Magento\Sales\Model\AdminOrder\Create $orderCreate,
PriceCurrencyInterface $priceCurrency,
\Magento\Wishlist\Model\WishlistFactory $wishlistFactory,
\Magento\GiftMessage\Model\Save $giftMessageSave,
\Magento\Tax\Model\Config $taxConfig,
\Magento\Tax\Helper\Data $taxData,
\Magento\GiftMessage\Helper\Message $messageHelper,
StockRegistryInterface $stockRegistry,
StockStateInterface $stockState,
array $data = []
) {
$this->_messageHelper = $messageHelper;
$this->_wishlistFactory = $wishlistFactory;
$this->_giftMessageSave = $giftMessageSave;
$this->_taxConfig = $taxConfig;
$this->_taxData = $taxData;
$this->stockRegistry = $stockRegistry;
$this->stockState = $stockState;
parent::__construct($context, $sessionQuote, $orderCreate, $priceCurrency, $data);
}
Код: Выделить всё
public function __construct(
\Magento\Backend\Block\Context $context,
\Magento\Catalog\Model\ProductTypes\ConfigInterface $typeConfig,
array $data = []
) {
parent::__construct($context, $data);
$this->typeConfig = $typeConfig;
}
Код: Выделить всё
Подробнее здесь: https://stackoverflow.com/questions/422 ... ument-type
Мобильная версия