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.
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.
Also look at failing unit tests. Please fix them
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\Validatorinto its constructorContribution checklist (*)