protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType)
The expression return $serializer->dese...pi\Model\User', 'json') also could return the type array which is incompatible with the documented return type ConnectHolland\TimechimpBundle\Api\Model\User|null.