-
-
Notifications
You must be signed in to change notification settings - Fork 64
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
fix: Normalize class names #300 #301
Conversation
If you are having static analysis issues, consider cloning this for Psalm: phpstan/phpstan#7483 |
Co-authored-by: Grégoire Paris <postmaster@greg0ire.fr>
Note for maintainers or @Tofandel : I think the commits can be squashed. |
Thanks @Tofandel ! |
Hi, this PR breaks test ClassMetadataFactoryTest::testHasGetMetadataNamespaceSeparatorIsNotNormalized in doctrine/orm:2.12.x. You can check test results here: https://github.com/doctrine/orm/runs/7698594303?check_suite_focus=true. @Tofandel could you check this case? What we can do? |
The threads are very hard to follow, but to me it seems, as per the last comment, that the linked issue had nothing to do with class normalization, and was related to namespace and a different fix was applied, so it's safe to modify this test to isSame and isTrue instead of isNotSame and isFalse, because the test mentionned was a revert and does nothing to check the issue (unless I didn't understand it in the first place), and only checks for the opposite of what is expected, since You can even see that the real tests for the issues are marked as
But this specific test is not And that this test was first created in doctrine/orm@120e694 Given that compared to php 5, php 8 is ~120% faster and that doctrine has a lot more caching now and that this really is such a fast triming operation, it's not a valid argument anymore |
Thank you a lot for the explanation and improvement! |
Co-authored-by: Grégoire Paris <postmaster@greg0ire.fr>
Co-authored-by: Grégoire Paris <postmaster@greg0ire.fr>
Co-authored-by: Grégoire Paris <postmaster@greg0ire.fr>
Co-authored-by: Grégoire Paris <postmaster@greg0ire.fr>
fix: Normalize class names doctrine#300 (doctrine#301) Author: Adrien Foulon Co-authored-by: Grégoire Paris <postmaster@greg0ire.fr>
Co-authored-by: Grégoire Paris <postmaster@greg0ire.fr>
Co-authored-by: Grégoire Paris <postmaster@greg0ire.fr>
fix: Normalize class names doctrine#300 (doctrine#301) Author: Adrien Foulon Co-authored-by: Adrien Foulon Co-authored-by: Grégoire Paris <postmaster@greg0ire.fr>
Fixes #300