onfido-php
onfido-php copied to clipboard
\Onfido\Api\DefaultApi::createApplicant wrong return type annotation ?
Hello.
In \Onfido\Api\DefaultApi::createApplicant
the return annotation is * @return \Onfido\Model\Applicant|\Onfido\Model\Error
.
Is it right ? I try to create a wrong applicant but an exception with Onfido\Model\Error
inside is thrown.