From d0cb8c8bf90676b7841c89119c24f4e437c3397c Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Wed, 18 Dec 2019 11:38:44 +0100 Subject: [PATCH] Fix compatibility with Symfony 4. --- src/Security/Core/User/EuloginUserProvider.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Security/Core/User/EuloginUserProvider.php b/src/Security/Core/User/EuloginUserProvider.php index e7a3445..0c22f44 100644 --- a/src/Security/Core/User/EuloginUserProvider.php +++ b/src/Security/Core/User/EuloginUserProvider.php @@ -31,7 +31,7 @@ public function loadUserByResponse(ResponseInterface $response): CasUserInterfac /** * {@inheritdoc} */ - public function loadUserByUsername(string $username) + public function loadUserByUsername($username) { throw new UnsupportedUserException(sprintf('Username "%s" does not exist.', $username)); } @@ -51,7 +51,7 @@ public function refreshUser(UserInterface $user) /** * {@inheritdoc} */ - public function supportsClass(string $class) + public function supportsClass($class) { return EuloginUser::class === $class; }