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