From 0e8b67ce2249c78ae0eaadc7541f504dd4d9f02b Mon Sep 17 00:00:00 2001 From: Stefan Kruppa Date: Fri, 9 Mar 2018 12:53:31 +0100 Subject: [PATCH 1/2] Add UsernameNotFoundException declaration to refreshUser(). --- .../Component/Security/Core/User/UserProviderInterface.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Symfony/Component/Security/Core/User/UserProviderInterface.php b/src/Symfony/Component/Security/Core/User/UserProviderInterface.php index 5867e83333c5c..e21fd5216da92 100644 --- a/src/Symfony/Component/Security/Core/User/UserProviderInterface.php +++ b/src/Symfony/Component/Security/Core/User/UserProviderInterface.php @@ -58,6 +58,7 @@ public function loadUserByUsername($username); * @return UserInterface * * @throws UnsupportedUserException if the user is not supported + * @throws UsernameNotFoundException if the user is not found */ public function refreshUser(UserInterface $user); From dcadb39bf8d76aa5cde4d29da2829b301eb91c93 Mon Sep 17 00:00:00 2001 From: Stefan Kruppa Date: Fri, 9 Mar 2018 13:02:05 +0100 Subject: [PATCH 2/2] Fix CS. --- .../Component/Security/Core/User/UserProviderInterface.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/Security/Core/User/UserProviderInterface.php b/src/Symfony/Component/Security/Core/User/UserProviderInterface.php index e21fd5216da92..b975949941603 100644 --- a/src/Symfony/Component/Security/Core/User/UserProviderInterface.php +++ b/src/Symfony/Component/Security/Core/User/UserProviderInterface.php @@ -57,7 +57,7 @@ public function loadUserByUsername($username); * * @return UserInterface * - * @throws UnsupportedUserException if the user is not supported + * @throws UnsupportedUserException if the user is not supported * @throws UsernameNotFoundException if the user is not found */ public function refreshUser(UserInterface $user);