-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[PropertyInfo] convert legacy types to TypeInfo types if getType() is not implemented #57459
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
Conversation
xabbuh
commented
Jun 19, 2024
Q | A |
---|---|
Branch? | 7.1 |
Bug fix? | yes |
New feature? | no |
Deprecations? | no |
Issues | Fix #57360 |
License | MIT |
@hantsy FYI, if you would like to try this with your application |
src/Symfony/Component/PropertyInfo/PropertyInfoCacheExtractor.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/PropertyInfo/Util/LegacyTypeConverter.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/PropertyInfo/Util/LegacyTypeConverter.php
Outdated
Show resolved
Hide resolved
btw, the testsuite should probably have a legacy test covering the usage of a legacy extractor (not implementing the new method) inside those. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add tests covering this BC layer
e2a595a
to
c8c4b55
Compare
I have added some tests for this fix |
src/Symfony/Component/PropertyInfo/Tests/PropertyInfoCacheExtractorTest.php
Show resolved
Hide resolved
src/Symfony/Component/PropertyInfo/Tests/PropertyInfoCacheExtractorTest.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/PropertyInfo/Tests/PropertyInfoExtractorTest.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/PropertyInfo/Util/LegacyTypeConverter.php
Outdated
Show resolved
Hide resolved
76bcfb5
to
92a89bc
Compare
309d2c1
to
835af97
Compare
Status: Needs Review |
@stof Could you spare some time to re-review this? |