[Issue] Small cleanup, removed duplicated keys from array #39851
Labels
Issue: ready for confirmation
Reported on 2.4.x
Indicates original Magento version for the Issue report.
Triage: Dev.Experience
Issue related to Developer Experience and needs help with Triage to Confirm or Reject it
This issue is automatically created based on existing pull request: #39844: Small cleanup, removed duplicated keys from array
Description (*)
The constants
ColumnResolver::COLUMN_WEIGHT
andColumnResolver::COLUMN_WEIGHT_DESTINATION
both 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 (*)
The text was updated successfully, but these errors were encountered: