-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Small cleanup, removed duplicated keys from array #39844
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
base: 2.4-develop
Are you sure you want to change the base?
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 |
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 (*)
Resolved issues: