Skip to content

Commit 94e4e7a

Browse files
committed
Merge branch '5.1' into master
* 5.1: minor [#14292] UserProvider::supportsClass
2 parents f853c9a + d5448d5 commit 94e4e7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

security/user_provider.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ command will generate a nice skeleton to get you started::
413413
*/
414414
public function supportsClass($class)
415415
{
416-
return User::class === $class;
416+
return User::class === $class || is_subclass_of($class, User::class);
417417
}
418418
}
419419

0 commit comments

Comments
 (0)