Skip to content

[Serializer][Validator] Add conflict with property-info < 5.3 #41469

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

Merged
merged 1 commit into from
May 31, 2021

Conversation

jderusse
Copy link
Member

Q A
Branch? 5.3
Bug fix? yes
New feature? no
Deprecations? no
Tickets -
License MIT
Doc PR -

Both components uses the getCollectionValueTypes method from property-info that has been introduced in 5.3 in #39020

$collectionValueType = $type->isCollection() ? $type->getCollectionValueTypes()[0] ?? null : null;

if ($types[0]->isCollection() && (null !== $collectionValueType = $types[0]->getCollectionValueTypes())) {

@jderusse jderusse requested a review from dunglas as a code owner May 31, 2021 16:45
@carsonbot carsonbot added this to the 5.3 milestone May 31, 2021
@carsonbot carsonbot changed the title Add conflict with property-info < 5.3 [Serializer][Validator] Add conflict with property-info < 5.3 May 31, 2021
@derrabus
Copy link
Member

Thank you Jérémy.

@derrabus derrabus merged commit 925bf86 into symfony:5.3 May 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants