diff --git a/src/Controller/UserController.php b/src/Controller/UserController.php
index 4c2e5f5..0f9fef7 100644
--- a/src/Controller/UserController.php
+++ b/src/Controller/UserController.php
@@ -30,7 +30,7 @@ class UserController extends AbstractController
 			if ($this->isGranted(attribute: 'ROLE_USER')) {
 				$user = $this->getUser();
 			} else {
-				throw new AccessDeniedException('You need to be logged in.');
+				throw new AccessDeniedException(message: 'You need to be logged in.');
 			}
 		} else {
 			if ($this->isGranted(attribute: 'ROLE_ADMIN')) {