Skip to content

Commit

Permalink
Fix PHPStan error (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
babeuloula authored Oct 3, 2023
1 parent 0f28c7c commit 1f911a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controller/User/DeleteController.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function __construct(
public function __invoke(Request $request, UserInterface $user): RedirectResponse
{
$this->userRepository->remove($user, true);
$this->tokenStorage->setToken();
$this->tokenStorage->setToken(null);

$request->getSession()->getFlashBag()->add('success', 'Your account was deleted with success.');

Expand Down

0 comments on commit 1f911a7

Please sign in to comment.