Skip to content

Commit 2d2233f

Browse files
Add return type unions to private/internal/final/test methods
1 parent d87281e commit 2d2233f

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

Authentication/AuthenticationManagerInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
*
2121
* @author Fabien Potencier <[email protected]>
2222
*
23-
* @internal since Symfony 5.3
23+
* @internal
2424
*/
2525
interface AuthenticationManagerInterface
2626
{

Tests/Authentication/AuthenticationTrustResolverTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
use Symfony\Component\Security\Core\Authentication\Token\AnonymousToken;
1717
use Symfony\Component\Security\Core\Authentication\Token\RememberMeToken;
1818
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
19+
use Symfony\Component\Security\Core\User\UserInterface;
1920

2021
class AuthenticationTrustResolverTest extends TestCase
2122
{
@@ -143,7 +144,7 @@ public function getCredentials(): mixed
143144
{
144145
}
145146

146-
public function getUser()
147+
public function getUser(): string|\Stringable|UserInterface
147148
{
148149
}
149150

Tests/Authentication/Token/AbstractTokenTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ public function getUsername(): string
261261
return $this->name;
262262
}
263263

264-
public function getUserIdentifier()
264+
public function getUserIdentifier(): string
265265
{
266266
return $this->name;
267267
}

0 commit comments

Comments
 (0)