Small cleanup, removed duplicated keys from array#39844
Conversation
|
Hi @hostep. Thank you for your contribution!
Allowed build names are:
You can find more information about the builds here For more details, review the Code Contributions documentation. |
|
@magento run all tests |
|
@magento create issue |
|
@magento run all tests |
|
@magento run all tests |
|
@magento run Functional Tests B2B, Functional Tests CE, Functional Tests EE, Static Tests |
|
@magento run Integration Tests |
|
@magento run all tests |
|
@magento run Functional Tests B2B, Functional Tests CE, Functional Tests EE |
|
@magento run all tests |
|
@magento run Functional Tests B2B, Functional Tests CE, Functional Tests EE, Integration Tests, Unit Tests |
|
Few of the Functional CE, B2B, EE failures are not consistent. They seems to be flaky, neither part of this PR nor failing because of the PR changes. The rest consistent once are known issues. Hence moving this PR to Merge in Progress. Functional B2B: Run 1: Run 2: Known Issues: Functional CE: Run 1:
Known Issues: Functional EE: Run 1:
Known Issues: |
3d89fd8
into
magento:2.4-develop








Description (*)
The constants
ColumnResolver::COLUMN_WEIGHTandColumnResolver::COLUMN_WEIGHT_DESTINATIONboth have the same value'Weight (and above)'So adding those both to an array as key makes no sense.
I assume one of both was added at a later point (probably in Magento1 times) and it was forgotten to cleanup the old one.
So that's what I'm doing here. I've left both constants in place just in case somebody does use both of them. But using both in the Magento codebase makes no sense.
It's another effort in trying to get phpstan to run on level 0 on the entire codebase without errors. This only fixes 2 small warnings, but it's a small step forward nonetheless.
Related Pull Requests
Fixed Issues (if relevant)
N/A
Manual testing scenarios (*)
Questions or comments
Contribution checklist (*)
Resolved issues: