Skip to content

Commit

Permalink
Merge branch '4.4' into 5.0
Browse files Browse the repository at this point in the history
* 4.4:
  [SecurityBundle] fix tests
  • Loading branch information
nicolas-grekas committed Jan 21, 2020
2 parents 99f6595 + 99ac9cd commit 786901b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@

namespace Symfony\Bundle\SecurityBundle\Tests\Functional\Bundle\SecuredPageBundle\Security\Core\User;

use Symfony\Bundle\SecurityBundle\Tests\Functional\UserWithoutEquatable;
use Symfony\Component\Security\Core\Exception\UnsupportedUserException;
use Symfony\Component\Security\Core\Exception\UsernameNotFoundException;
use Symfony\Component\Security\Core\User\User;
use Symfony\Component\Security\Core\User\UserInterface;
use Symfony\Component\Security\Core\User\UserProviderInterface;

Expand Down Expand Up @@ -52,6 +54,6 @@ public function refreshUser(UserInterface $user)

public function supportsClass($class)
{
return 'Symfony\Component\Security\Core\User\User' === $class;
return User::class === $class || UserWithoutEquatable::class === $class;
}
}

0 comments on commit 786901b

Please sign in to comment.