Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9f93a38

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

File tree

1 file changed

+3
-1
lines changed
Filter options
  • 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

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/SecurityBundle/Tests/Functional/Bundle/SecuredPageBundle/Security/Core/User/ArrayUserProvider.php
+3-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.