Skip to content

Commit 6aac5d5

Browse files
committed
Add missing dots at the end of exception messages
1 parent 5b87767 commit 6aac5d5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Authentication/Provider/LdapBindAuthenticationProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public function setQueryString($queryString)
6868
protected function retrieveUser($username, UsernamePasswordToken $token)
6969
{
7070
if (AuthenticationProviderInterface::USERNAME_NONE_PROVIDED === $username) {
71-
throw new UsernameNotFoundException('Username can not be null');
71+
throw new UsernameNotFoundException('Username can not be null.');
7272
}
7373

7474
return $this->userProvider->loadUserByUsername($username);

User/LdapUserProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public function loadUserByUsername($username)
8181
}
8282

8383
if ($count > 1) {
84-
throw new UsernameNotFoundException('More than one user found');
84+
throw new UsernameNotFoundException('More than one user found.');
8585
}
8686

8787
$entry = $entries[0];

0 commit comments

Comments
 (0)