Skip to content
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 Symfony\Component\PropertyInfo\Type::getCollectionValueType() deprecation notice for symfony >=5.3 #1863

Merged

Conversation

onatskyy
Copy link

fix for #1856

Copy link
Collaborator

@GuilhemN GuilhemN left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for submitting this PR, it's really great!

Similarly to what Symfony does, we do our best to keep our code compatible with a wide range of dependency versions when doing changes. In the context of this change, the new method getCollectionValueTypes was introduced in Symfony 5.3 and we still support Symfony 4, so we need to do some more work to support both versions, while fixing these annoying deprecation notices for users :)

Model/ModelRegistry.php Outdated Show resolved Hide resolved
@onatskyy onatskyy force-pushed the fix_getCollectionValueType_deprecation branch from ec96853 to 0667881 Compare August 18, 2021 13:12
@GuilhemN GuilhemN merged commit 2f25ca6 into nelmio:master Aug 27, 2021
@GuilhemN
Copy link
Collaborator

Great! Thank you @onatskyy :)

MrBulkinAleksey added a commit to MrBulkinAleksey/NelmioApiDocBundle that referenced this pull request Nov 3, 2021
GuilhemN pushed a commit that referenced this pull request Nov 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants