diff options
Diffstat (limited to 'Core')
-rw-r--r-- | Core/Authentication/AuthenticationTrustResolver.php | 2 | ||||
-rw-r--r-- | Core/Authentication/Token/RememberMeToken.php | 2 | ||||
-rw-r--r-- | Core/Authorization/Voter/AuthenticatedVoter.php | 2 | ||||
-rw-r--r-- | Core/SecurityContextInterface.php | 1 | ||||
-rw-r--r-- | Core/User/UserInterface.php | 2 |
5 files changed, 1 insertions, 8 deletions
diff --git a/Core/Authentication/AuthenticationTrustResolver.php b/Core/Authentication/AuthenticationTrustResolver.php index 8ca28fb..9b3ff3d 100644 --- a/Core/Authentication/AuthenticationTrustResolver.php +++ b/Core/Authentication/AuthenticationTrustResolver.php @@ -28,8 +28,6 @@ class AuthenticationTrustResolver implements AuthenticationTrustResolverInterfac * * @param string $anonymousClass * @param string $rememberMeClass - * - * @return void */ public function __construct($anonymousClass, $rememberMeClass) { diff --git a/Core/Authentication/Token/RememberMeToken.php b/Core/Authentication/Token/RememberMeToken.php index 81ab1c2..fe30c21 100644 --- a/Core/Authentication/Token/RememberMeToken.php +++ b/Core/Authentication/Token/RememberMeToken.php @@ -51,7 +51,7 @@ class RememberMeToken extends AbstractToken public function setAuthenticated($authenticated) { if ($authenticated) { - throw new \RuntimeException('You cannot set this token to authenticated after creation.'); + throw new \LogicException('You cannot set this token to authenticated after creation.'); } parent::setAuthenticated(false); diff --git a/Core/Authorization/Voter/AuthenticatedVoter.php b/Core/Authorization/Voter/AuthenticatedVoter.php index d750e33..5847e0d 100644 --- a/Core/Authorization/Voter/AuthenticatedVoter.php +++ b/Core/Authorization/Voter/AuthenticatedVoter.php @@ -35,8 +35,6 @@ class AuthenticatedVoter implements VoterInterface * Constructor. * * @param AuthenticationTrustResolverInterface $authenticationTrustResolver - * - * @return void */ public function __construct(AuthenticationTrustResolverInterface $authenticationTrustResolver) { diff --git a/Core/SecurityContextInterface.php b/Core/SecurityContextInterface.php index d57c409..d0c7214 100644 --- a/Core/SecurityContextInterface.php +++ b/Core/SecurityContextInterface.php @@ -35,7 +35,6 @@ interface SecurityContextInterface * Sets the authentication token. * * @param TokenInterface $token - * @return void */ function setToken(TokenInterface $token = null); diff --git a/Core/User/UserInterface.php b/Core/User/UserInterface.php index 9091bfc..f6356fe 100644 --- a/Core/User/UserInterface.php +++ b/Core/User/UserInterface.php @@ -48,8 +48,6 @@ interface UserInterface /** * Removes sensitive data from the user. - * - * @return void */ function eraseCredentials(); |