Skip to content

Commit

Permalink
Fix TU for symfony 6.3
Browse files Browse the repository at this point in the history
  1x: Method "Symfony\Component\Security\Core\User\UserInterface::eraseCredentials()" might add "void" as a native return type declaration in the future. Do the same in implementation "Lexik\Bundle\JWTAuthenticationBundle\Security\User\JWTUser" now to avoid errors or add an explicit @return annotation to suppress this message.
    1x in BlocklistTokenTest::testShouldInvalidateTokenOnLogoutWhenBlockListTokenIsEnabled from Lexik\Bundle\JWTAuthenticationBundle\Tests\Functional

  1x: Method "Symfony\Component\Security\Core\User\UserInterface::eraseCredentials()" might add "void" as a native return type declaration in the future. Do the same in implementation "Lexik\Bundle\JWTAuthenticationBundle\Tests\Stubs\User" now to avoid errors or add an explicit @return annotation to suppress this message.
    1x in JWTAuthenticatorTest::testAuthenticate from Lexik\Bundle\JWTAuthenticationBundle\Tests\Security\Authenticator
  • Loading branch information
ldaspt authored and Ludovic Daoudal committed Nov 23, 2023
1 parent f5346d6 commit b1db08c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Security/User/JWTUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ public function getSalt(): ?string

/**
* {@inheritdoc}
*
* @return void
*/
public function eraseCredentials()
{
Expand Down
2 changes: 1 addition & 1 deletion Tests/Stubs/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public function getUserIdentifier(): string
/**
* {@inheritdoc}
*/
public function eraseCredentials()
public function eraseCredentials(): void
{
}

Expand Down

0 comments on commit b1db08c

Please sign in to comment.