Skip to content
This repository was archived by the owner on May 31, 2024. It is now read-only.

Commit 190749f

Browse files
committed
Making GuardTokenInterface extend TokenInterface
This makes some of our type-hints more honest: i.e. where we look for a GuardTokenInterface, but really also expect it to implement TokenInterface.
1 parent 5c71d17 commit 190749f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Guard/Token/GuardTokenInterface.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
namespace Symfony\Component\Security\Guard\Token;
1313

14+
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
15+
1416
/**
1517
* A marker interface that both guard tokens implement.
1618
*
@@ -20,6 +22,6 @@
2022
*
2123
* @author Ryan Weaver <ryan@knpuniversity.com>
2224
*/
23-
interface GuardTokenInterface
25+
interface GuardTokenInterface extends TokenInterface
2426
{
2527
}

0 commit comments

Comments
 (0)