You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
I am using a custom serializer that implements DenormalizerInterface, NormalizerInterface. in order to add translation when denormalize my json. Then i send it to an ObjectNormalizer $objectNormalizer.
Since the update from 4.1.23 to 4.1.24 i got the following error: Attempted to call an undefined method named "getNativeType" of class "ApiPlatform\Metadata\ApiProperty".
in vendor/api-platform/serializer/AbstractItemNormalizer.php (line 881)
when $type = $propertyMetadata->getNativeType(); is called
How to reproduce
update your version and setup a custom normalizer call, the issue come from a method called inside the vendor of ApiPlatform so i guess this should trigger the error
Possible Solution
get the native type by using getBuiltinType instead ?