[Issue] Fixes incorrectly cased namespace usages. #38640
Labels
Area: Framework
Component: Framework/Code
Issue: Confirmed
Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed
Priority: P2
A defect with this priority could have functionality issues which are not to expectations.
Progress: PR in progress
Reported on 2.4.x
Indicates original Magento version for the Issue report.
Reproduced on 2.4.x
The issue has been reproduced on latest 2.4-develop branch
This issue is automatically created based on existing pull request: #37574: Fixes incorrectly cased namespace usages.
Description (*)
While playing around with phpstan on level 0 on the Magento codebase, these problems showed up (among many others, but those are for another day)
This PR fixes these.
I don't think these caused real issues, I think composer's autoloader is gracefully enough to load those incorrectly cased namespaces, but let's make them correct anyways.
Related Pull Requests
Fixed Issues (if relevant)
Manual testing scenarios (*)
vendor/bin/phpstan analyse --level=0 {some-path} | grep 'referenced with incorrect case'
on all Magento code, it should not output anything (don't run this on the root the M2 codebase, otherwise it will take hours and might crash your computer if you don't have at least 32 GB of memory)Questions or comments
I might fix (static) test failures if they don't turn out to be too complex to handle, but won't write new automated tests, because I think that's not relevant in scope of this PR.
Contribution checklist (*)
The text was updated successfully, but these errors were encountered: