Nelmioapidocbundle: Fix Symfony\Component\PropertyInfo\Type::getCollectionValueType() deprecation notice in symfony 5.3

Created on 28 Jul 2021  路  1Comment  路  Source: nelmio/NelmioApiDocBundle

I get this deprecation notice
Since symfony/property-info 5.3: The "Symfony\Component\PropertyInfo\Type::getCollectionValueType()" method is deprecated, use "getCollectionValueTypes()" instead.

The deprecated method is called in these files:
ObjectPropertyDescriber, ModelRegistry, ArrayPropertyDescriber

Most helpful comment

Also we got this deprecation notice:
Since symfony/property-info 5.3: The "Symfony\Component\PropertyInfo\Type::getCollectionKeyType()" method is deprecated, use "getCollectionKeyTypes()" instead.

>All comments

Also we got this deprecation notice:
Since symfony/property-info 5.3: The "Symfony\Component\PropertyInfo\Type::getCollectionKeyType()" method is deprecated, use "getCollectionKeyTypes()" instead.

Was this page helpful?
0 / 5 - 0 ratings