Description
After upgrade symfony 6.4 -> 7.1 I cannot make cache:clear
I have next exception:
[Symfony\Component\ErrorHandler\Error\UndefinedMethodError]
Attempted to call an undefined method named "getType" of class "ApiPlatform\Doctrine\Odm\PropertyInfo\DoctrineExtractor".
Did you mean to call "getTypes"?
After research I found that PropertyInfoLoader::getPropertyTypes() is using getType instead of getTypes from symfony 7.1 if the method PropertyInfoExtractor::getType() exists
How to reproduce
Install api platform with symfony/property-info ^7.1 (with ODM)
Possible Solution
Implement the ApiPlatform\Doctrine\Odm\PropertyInfo\DoctrineExtractor::getType()
API Platform version(s) affected: 3.3.5
Description
After upgrade symfony 6.4 -> 7.1 I cannot make cache:clear I have next exception:
After research I found that
PropertyInfoLoader::getPropertyTypes()
is using getType instead of getTypes from symfony 7.1 if the methodPropertyInfoExtractor::getType()
existsHow to reproduce
Install api platform with symfony/property-info ^7.1 (with ODM)
Possible Solution
Implement the
ApiPlatform\Doctrine\Odm\PropertyInfo\DoctrineExtractor::getType()