diff options
author | Dariusz Górecki <darek.krk@gmail.com> | 2012-01-02 21:24:24 +0100 |
---|---|---|
committer | Dariusz Górecki <darek.krk@gmail.com> | 2012-01-10 21:55:05 +0100 |
commit | 146336f5ee65bf1bf7b82dbfe8c57d16cb2e27c1 (patch) | |
tree | f701f838976905b43dbf181d6f427661461c43d0 | |
parent | 137afdde3ab3c30b109ae33ee50542486e743d74 (diff) | |
download | symfony-security-146336f5ee65bf1bf7b82dbfe8c57d16cb2e27c1.zip symfony-security-146336f5ee65bf1bf7b82dbfe8c57d16cb2e27c1.tar.gz symfony-security-146336f5ee65bf1bf7b82dbfe8c57d16cb2e27c1.tar.bz2 |
Add some more tests, and enforce boolean return value of interface implementations.
-rw-r--r-- | Core/Authentication/Token/AbstractToken.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Core/Authentication/Token/AbstractToken.php b/Core/Authentication/Token/AbstractToken.php index f83b5d9..6015799 100644 --- a/Core/Authentication/Token/AbstractToken.php +++ b/Core/Authentication/Token/AbstractToken.php @@ -230,7 +230,7 @@ abstract class AbstractToken implements TokenInterface } if ($this->user instanceof EquatableInterface) { - return !$this->user->isEqualTo($user); + return ! (Boolean) $this->user->isEqualTo($user); } if ($this->user->getPassword() !== $user->getPassword()) { |