Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9f93a38

Browse files
Merge branch '5.0'
* 5.0: [SecurityBundle] fix tests
2 parents a8cc059 + 1038e70 commit 9f93a38

File tree

1 file changed

+3
-1
lines changed
  • src/Symfony/Bundle/SecurityBundle/Tests/Functional/Bundle/SecuredPageBundle/Security/Core/User

1 file changed

+3
-1
lines changed

src/Symfony/Bundle/SecurityBundle/Tests/Functional/Bundle/SecuredPageBundle/Security/Core/User/ArrayUserProvider.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22

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

5+
use Symfony\Bundle\SecurityBundle\Tests\Functional\UserWithoutEquatable;
56
use Symfony\Component\Security\Core\Exception\UnsupportedUserException;
67
use Symfony\Component\Security\Core\Exception\UsernameNotFoundException;
8+
use Symfony\Component\Security\Core\User\User;
79
use Symfony\Component\Security\Core\User\UserInterface;
810
use Symfony\Component\Security\Core\User\UserProviderInterface;
911

@@ -52,6 +54,6 @@ public function refreshUser(UserInterface $user)
5254

5355
public function supportsClass($class)
5456
{
55-
return 'Symfony\Component\Security\Core\User\User' === $class;
57+
return User::class === $class || UserWithoutEquatable::class === $class;
5658
}
5759
}

0 commit comments

Comments
 (0)