From 478ca37cd9016b85d677737233af384e5f0e683a Mon Sep 17 00:00:00 2001 From: Marc Morera Date: Sun, 26 Apr 2015 03:40:53 +0200 Subject: [PATCH] Fix the PHPDoc for the getRoles() method This method return an array of strings instead of Role instances. I have removed as well the use statement because is not used anymore. | Q | A | ------------- | --- | Bug fix? | [yes] | New feature? | [no] | BC breaks? | [no] | Deprecations? | [no] | Tests pass? | [yes] | Fixed tickets | | License | MIT | Doc PR | --- src/Symfony/Component/Security/Core/User/UserInterface.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Symfony/Component/Security/Core/User/UserInterface.php b/src/Symfony/Component/Security/Core/User/UserInterface.php index 1b52dab9965fe..00a080ca13148 100644 --- a/src/Symfony/Component/Security/Core/User/UserInterface.php +++ b/src/Symfony/Component/Security/Core/User/UserInterface.php @@ -11,8 +11,6 @@ namespace Symfony\Component\Security\Core\User; -use Symfony\Component\Security\Core\Role\Role; - /** * Represents the interface that all user classes must implement. * @@ -47,7 +45,7 @@ interface UserInterface * and populated in any number of different ways when the user object * is created. * - * @return Role[] The user roles + * @return string[] The user roles */ public function getRoles();