fix phpstan issues

This commit is contained in:
2023-04-28 22:55:01 +02:00
parent 9027cbd196
commit c35994203d
10 changed files with 24 additions and 43 deletions

View File

@@ -258,7 +258,9 @@ class ApiController extends AbstractCRUDController
}
match ($request->getMethod()) {
/* @phpstan-ignore-next-line */
Request::METHOD_DELETE => $entity->{'remove' . ucfirst($property)}($postedData),
/* @phpstan-ignore-next-line */
Request::METHOD_POST => $entity->{'add' . ucfirst($property)}($postedData),
default => throw new BadRequestHttpException('this method is not supported'),
};