Skip to content

Commit 022d79e

Browse files
committed
bug #1646 Missmatch between PHPDoc and the reality on User::getRoles() (Curryed)
This PR was merged into the 1.x branch. Discussion ---------- Missmatch between PHPDoc and the reality on User::getRoles() See description in #1652 Commits ------- 28da5e4 fix: keep the return from the interface instead
2 parents a12d5e0 + 28da5e4 commit 022d79e

8 files changed

+1
-8
lines changed

src/Security/UserClassBuilder.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ private function addGetRoles(ClassSourceManipulator $manipulator, UserClassConfi
132132
'getRoles',
133133
'array',
134134
false,
135-
['@see UserInterface', '@return list<string>']
135+
['@see UserInterface']
136136
);
137137

138138
// $roles = $this->roles

tests/Security/fixtures/expected/UserEntityWithEmailAsIdentifier.php

-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ public function getUserIdentifier(): string
5959

6060
/**
6161
* @see UserInterface
62-
* @return list<string>
6362
*/
6463
public function getRoles(): array
6564
{

tests/Security/fixtures/expected/UserEntityWithPassword.php

-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ public function setUserIdentifier(string $userIdentifier): static
5454

5555
/**
5656
* @see UserInterface
57-
* @return list<string>
5857
*/
5958
public function getRoles(): array
6059
{

tests/Security/fixtures/expected/UserEntityWithUser_IdentifierAsIdentifier.php

-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ public function setUserIdentifier(string $user_identifier): static
5454

5555
/**
5656
* @see UserInterface
57-
* @return list<string>
5857
*/
5958
public function getRoles(): array
6059
{

tests/Security/fixtures/expected/UserEntityWithoutPassword.php

-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ public function setUserIdentifier(string $userIdentifier): static
4747

4848
/**
4949
* @see UserInterface
50-
* @return list<string>
5150
*/
5251
public function getRoles(): array
5352
{

tests/Security/fixtures/expected/UserModelWithEmailAsIdentifier.php

-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ public function getUserIdentifier(): string
4343

4444
/**
4545
* @see UserInterface
46-
* @return list<string>
4746
*/
4847
public function getRoles(): array
4948
{

tests/Security/fixtures/expected/UserModelWithPassword.php

-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ public function setUserIdentifier(string $userIdentifier): static
3838

3939
/**
4040
* @see UserInterface
41-
* @return list<string>
4241
*/
4342
public function getRoles(): array
4443
{

tests/Security/fixtures/expected/UserModelWithoutPassword.php

-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ public function setUserIdentifier(string $userIdentifier): static
3232

3333
/**
3434
* @see UserInterface
35-
* @return list<string>
3635
*/
3736
public function getRoles(): array
3837
{

0 commit comments

Comments
 (0)