diff --git a/src/Security/SecurityControllerBuilder.php b/src/Security/SecurityControllerBuilder.php index 3d843bd91..12923fd41 100644 --- a/src/Security/SecurityControllerBuilder.php +++ b/src/Security/SecurityControllerBuilder.php @@ -71,7 +71,7 @@ public function addLogoutMethod(ClassSourceManipulator $manipulator) $manipulator->addUseStatementIfNecessary(Route::class); $manipulator->addMethodBody($logoutMethodBuilder, <<<'CODE' addMethodBuilder($logoutMethodBuilder); diff --git a/tests/Security/fixtures/expected/SecurityController_login_logout.php b/tests/Security/fixtures/expected/SecurityController_login_logout.php index 000eedc6d..ed5a595b7 100644 --- a/tests/Security/fixtures/expected/SecurityController_login_logout.php +++ b/tests/Security/fixtures/expected/SecurityController_login_logout.php @@ -31,6 +31,6 @@ public function login(AuthenticationUtils $authenticationUtils): Response */ public function logout() { - throw new \Exception('This method can be blank - it will be intercepted by the logout key on your firewall'); + throw new \LogicException('This method can be blank - it will be intercepted by the logout key on your firewall.'); } }