Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[Serializer][PropertyInfo] Fix support for "false" built-in type on PHP 8.2#45981
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
[Serializer][PropertyInfo] Fix support for "false" built-in type on PHP 8.2#45981
Uh oh!
There was an error while loading.Please reload this page.
Conversation
cd0d551 to3c4de50Compare9512543 tod915fe4CompareThanks for PR. Can we wait forhttps://wiki.php.net/rfc/true-type RFC also? |
I planned to do it as soon as it is merged if this PR is merged before "true" is available, but yeah I can definitely embed it as well in this pull request 👍 |
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.
Works for me, with minor comments, thanks.
(true should wait until the RFC is approved)
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
d915fe4 to3b55f99Comparechalasr commentedApr 27, 2022 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
@alexandre-daubois Can you update the PropertyInfo's conflict rule + dev requirement for symfony/serializer so that it only allows serializer v4.4.42 or higher? That should fix the low-deps build |
I'll take a look into that as soon as possible! |
f074bda to1e4f810CompareWait, it's the opposite actually 🤦♂️ Serializer needs |
1e4f810 tobfb1146CompareRight, makes more sense 😄 At least, I figured out what are high-deps/low-deps builds. Thank you Robin! |
bfb1146 to0a32f04Compare| } | ||
| if (('is_'.$builtinType)($data)) { | ||
| if ('false' ===$builtinType ||('is_'.$builtinType)($data)) { |
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.
I've inlined the value of the constant: the minimum version bump is not worth it IMHO.
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.
Alright, will do it as well forphp/php-src#8326 when it's accepted. Thanks 👍
| /** | ||
| * @requires PHP 8.2 | ||
| */ | ||
| publicfunctiontestFalseBuiltInTypes() |
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.
This test case was triggering a warning:This test did not perform any assertions
I fixed it.
Thank you@alexandre-daubois. |
0a32f04 to4187d3fCompare…HP 8.2) (bobahvas, alexandre-daubois)This PR was merged into the 6.2 branch.Discussion----------[Serializer] Add support of true built-in type (from PHP 8.2)| Q | A| ------------- | ---| Branch? | 6.2| Bug fix? | no| New feature? | yes| Deprecations? | no| Tickets | -| License | MIT| Doc PR | -RFC:https://wiki.php.net/rfc/true-typePull request:php/php-src#8326Same as this PR to add support of `false` and `null` types:#45981Commits-------2ec0453 [Serializer] Add support of true built-in type (from PHP 8.2)
Uh oh!
There was an error while loading.Please reload this page.
falseandnullbuilt-in types have been merged in PHP 8.2 a few hours ago:php/php-src#7546 🎉RFC:https://wiki.php.net/rfc/null-false-standalone-types
PropertyInfo and Serializer both need an update to support them.