-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Incorrect constructor of Magento\Sales\Model\Order\Address\Validator #21692
Comments
Hi @Bartlomiejsz. Thank you for your report.
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
For more details, please, review the Magento Contributor Assistant documentation. @Bartlomiejsz do you confirm that you was able to reproduce the issue on vanilla Magento instance following steps to reproduce?
|
Hi @engcom-backlog-nazar. Thank you for working on this issue.
|
✅ Confirmed by @engcom-backlog-nazar Issue Available: @engcom-backlog-nazar, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself. |
@Bartlomiejsz Hello, CLI in Magento loads all Command classes and them injections Also, you can change the injection attribute via di.xml. |
@MaksymGrom you're right, it can be handled using proxy, but still such logic should not be included in constructor so I hope it will be merged soon. |
Hi @Bartlomiejsz. Thank you for your report.
The fix will be available with the upcoming 2.3.2 release. |
Add missing phpdoc clock
Add missing phpdoc clock
Hi @Bartlomiejsz. Thank you for your report.
The fix will be available with the upcoming 2.2.9 release. |
Summary (*)
Tested on 2.3, but exactly same logic is included in this constructor on 2.2-develop branch.
Constructor of
Magento\Sales\Model\Order\Address\Validator
includes logic and should not. The reason of it is that if this class is injected in constructor in Cli Command in some custom module, installation of Magento fails.Examples (*)
Magento\Sales\Model\Order\Address\Validator
is injectedBase table or view not found: 1146 Table 'database.eav_entity_type' doesn't exist, query was: SELECT
main_table.* FROM
eav_entity_typeAS
main_table"
Proposed solution
I'm preparing PR for this one.
The text was updated successfully, but these errors were encountered: