fix construction of BadRequestHttpException

This commit is contained in:
Julien Fastré 2022-05-11 19:39:36 +02:00
parent 58fce9999d
commit b98f4e2d76

View File

@ -247,7 +247,7 @@ final class AccompanyingCourseApiController extends ApiController
} }
if (null === $requestor) { if (null === $requestor) {
throw new BadRequestHttpException('Could not find any person or thirdparty', 0, null); throw new BadRequestHttpException('Could not find any person or thirdparty');
} }
$accompanyingPeriod->setRequestor($requestor); $accompanyingPeriod->setRequestor($requestor);