-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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 #21692 #21752 - logic in constructor of address validator and Locale Resolver check #21693
Fix #21692 #21752 - logic in constructor of address validator and Locale Resolver check #21693
Conversation
… to validate method
Hi @Bartlomiejsz. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
Hi @ihor-sviziev, thank you for the review. |
@Bartlomiejsz thank you for contributing. Please accept Community Contributors team invitation here to gain extended permissions for this repository. |
Hi @Bartlomiejsz ! I've checked PR and it looks like changes does not solve the problem. Manual testing scenario: |
Hi @stoleksiy, this is another error. I wasn't aware that it also will appear for this class. I will add another issue and prepare PR later. Seems that those two are just combined and the other one have to be merged first. |
@Bartlomiejsz But, how can i check solution to the issue #21692 ? You need to solve the problem in scope of this PR. |
@stoleksiy ok then, I will add fixing changes to this PR |
@stoleksiy I've added fix for second issue |
private function getDeploymentConfig() | ||
{ | ||
if (!$this->deploymentConfig) { | ||
$this->deploymentConfig = ObjectManager::getInstance()->get(DeploymentConfig::class); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you move deploymentConfig as last argument in constructor? It's not a good idea to get it through ObjectManager.
See "Adding a constructor parameter" section in https://devdocs.magento.com/guides/v2.3/contributor-guide/backward-compatible-development/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also look at failing unit tests. Please fix them
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ihor-sviziev please check again now
This reverts commit b86f981.
Hi @ihor-sviziev, thank you for the review. |
…21692_incorrect_constructor
Hi @Bartlomiejsz, thank you for your contribution! |
Description (*)
This fixes issue #21692 - error is described there
Fixed Issues (if relevant)
Manual testing scenarios (*)
Magento\Sales\Model\Order\Address\Validator
into its constructorContribution checklist (*)