-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[PropertyInfo][Serializer] Add support of list
and trigger deprecation when filling a list-typed property with an array
#49056
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: 7.3
Are you sure you want to change the base?
Conversation
list
and trigger deprecation when filling a list-typed property with an arraylist
and trigger deprecation when filling a list-typed property with an array
f6826e9
to
e01dfd6
Compare
Hey! I think @EmilMassey has recently worked with this code. Maybe they can help review this? Cheers! Carsonbot |
@alexandre-daubois There's still a failing test, that should be taken care of |
@@ -35,10 +35,8 @@ class Type | |||
|
|||
/** | |||
* List of PHP builtin types. | |||
* | |||
* @var string[] |
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.
Why is this line removed?
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.
That's a mistake, thanks for pointing this out 👍
930e6cc
to
26f67ef
Compare
…ion when filling a list-typed property with an array
26f67ef
to
f539aa6
Compare
I agree we would better move forward with the PRs linked above instead as they cover a larger scope that includes the feature provided by this PR. |
Totally forgot about this one 😄 Totally agree with you, let's close this |
But half of your PR is still needed, I think (the validation/deprecation part) |
Alright, I'll wait for TypeInfo to be merged then I'll get back to this one 🙂 |
As this improvement could break existing code, I went for the deprecation triggering way.
Reproducer:
Results on: