Closed francescosalvi closed 5 years ago
On 2.3.1 bin/magento setup:di:compile breaks with error
bin/magento setup:di:compile
Magento\Bundle\Model\Selection Incompatible argument type: Required type: \Magento\Framework\Model\ResourceModel\AbstractResource. Actual type: \Magento\Bundle\Model\ResourceModel\Selection; File: /opt/atlassian/pipelines/agent/build/vendor/magento/module-bundle/Model/Selection.php
Error is fixed by extending the correct class (AbstractResource) and adding the required method stubs (_construct, getConnection), but I didn't test against possible side effects
AbstractResource
_construct
getConnection
Thank you for reporting and it would be super cool if you can send me a pull request with that fix as I don't have the time to fix it.
On 2.3.1
bin/magento setup:di:compile
breaks with errorError is fixed by extending the correct class (
AbstractResource
) and adding the required method stubs (_construct
,getConnection
), but I didn't test against possible side effects