Code improvements (#1649)
* use global namespace for faster lookups * phpstan level 5
This commit is contained in:
@@ -69,8 +69,8 @@ class LdapUserProvider implements UserProviderInterface
|
||||
|
||||
public function refreshUser(UserInterface $user)
|
||||
{
|
||||
if (!($user instanceof User) || !$this->supportsClass(get_class($user))) {
|
||||
throw new UnsupportedUserException(sprintf('Instances of "%s" are not supported.', get_class($user)));
|
||||
if (!($user instanceof User) || !$this->supportsClass(\get_class($user))) {
|
||||
throw new UnsupportedUserException(sprintf('Instances of "%s" are not supported.', \get_class($user)));
|
||||
}
|
||||
|
||||
if (!$user->isLdapUser() && null === $user->getPreferenceValue('ldap.dn')) {
|
||||
|
||||
Reference in New Issue
Block a user