Skip to content

Commit

Permalink
fix(USerController): UserDTO parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
n3wborn committed Feb 7, 2024
1 parent 7efc65b commit 029394b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controller/UserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function getUserInfos(?User $user): JsonResponse
#[Route('/user/{slug}', name: self::ROUTE_EDIT, methods: Request::METHOD_POST)]
public function persistUser(
?User $user,
#[MapRequestPayload()] ?UserDTO $dto,
#[MapRequestPayload()] UserDTO $dto,
Request $request,
): JsonResponse {
return $this->handler->handlePersistUser($user, $request, $dto);
Expand Down

0 comments on commit 029394b

Please sign in to comment.