Skip to content

Commit

Permalink
fix: keep the return from the interface instead
Browse files Browse the repository at this point in the history
  • Loading branch information
Curryed committed Jan 15, 2025
1 parent 0624f13 commit 507afc1
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion src/Security/UserClassBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ private function addGetRoles(ClassSourceManipulator $manipulator, UserClassConfi
'getRoles',
'array',
false,
['@see UserInterface', '@return list<string>']
['@see UserInterface']
);

// $roles = $this->roles
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ public function getUserIdentifier(): string

/**
* @see UserInterface
* @return list<string>
*/
public function getRoles(): array
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ public function setUserIdentifier(string $userIdentifier): static

/**
* @see UserInterface
* @return list<string>
*/
public function getRoles(): array
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ public function setUserIdentifier(string $user_identifier): static

/**
* @see UserInterface
* @return list<string>
*/
public function getRoles(): array
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ public function setUserIdentifier(string $userIdentifier): static

/**
* @see UserInterface
* @return list<string>
*/
public function getRoles(): array
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ public function getUserIdentifier(): string

/**
* @see UserInterface
* @return list<string>
*/
public function getRoles(): array
{
Expand Down
1 change: 0 additions & 1 deletion tests/Security/fixtures/expected/UserModelWithPassword.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ public function setUserIdentifier(string $userIdentifier): static

/**
* @see UserInterface
* @return list<string>
*/
public function getRoles(): array
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ public function setUserIdentifier(string $userIdentifier): static

/**
* @see UserInterface
* @return list<string>
*/
public function getRoles(): array
{
Expand Down

0 comments on commit 507afc1

Please sign in to comment.