diff --git a/src/Bundle/ChillPersonBundle/Controller/PersonApiController.php b/src/Bundle/ChillPersonBundle/Controller/PersonApiController.php index b845de1fd..9bd54945e 100644 --- a/src/Bundle/ChillPersonBundle/Controller/PersonApiController.php +++ b/src/Bundle/ChillPersonBundle/Controller/PersonApiController.php @@ -120,7 +120,7 @@ class PersonApiController extends ApiController return $this->json($configAltNames, Response::HTTP_OK, [], ['groups' => ['read']]); } - public function getValidationGroups(string $action, Request $request, string $_format, $entity): ?array + protected function getValidationGroups(string $action, Request $request, string $_format, $entity): ?array { if ($action === '_entity'){ if ($request->getMethod() === Request::METHOD_POST){