From 7f04fbb0785a3da094f954ccdd8d016eea4d52cd Mon Sep 17 00:00:00 2001 From: Ryan Weaver Date: Sat, 26 Sep 2015 14:10:49 -0400 Subject: [PATCH] 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. --- .../Component/Security/Guard/Token/GuardTokenInterface.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Symfony/Component/Security/Guard/Token/GuardTokenInterface.php b/src/Symfony/Component/Security/Guard/Token/GuardTokenInterface.php index f0db250dd38f4..063ffd3ba7e32 100644 --- a/src/Symfony/Component/Security/Guard/Token/GuardTokenInterface.php +++ b/src/Symfony/Component/Security/Guard/Token/GuardTokenInterface.php @@ -11,6 +11,8 @@ namespace Symfony\Component\Security\Guard\Token; +use Symfony\Component\Security\Core\Authentication\Token\TokenInterface; + /** * A marker interface that both guard tokens implement. * @@ -20,6 +22,6 @@ * * @author Ryan Weaver */ -interface GuardTokenInterface +interface GuardTokenInterface extends TokenInterface { }