Skip to content

Commit

Permalink
fix(UserHelper): editSlugParamExists return type
Browse files Browse the repository at this point in the history
see: #30
  • Loading branch information
n3wborn committed Nov 1, 2023
1 parent d007786 commit 6b97e9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Service/User/UserHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public static function isEditRoute(Request $request): bool
}

/** @throws NotFoundException */
public function editSlugParamExists(Request $request): ?Project
public function editSlugParamExists(Request $request): ?User
{
return isset($request->get('_route_params')['slug'])
? $this->em->getRepository(User::class)->findOneBy(['slug' => $request->get('_route_params')['slug']])
Expand Down

0 comments on commit 6b97e9e

Please sign in to comment.