diff options
author | Johannes M. Schmitt <schmittjoh@gmail.com> | 2011-05-30 14:09:16 +0200 |
---|---|---|
committer | Johannes M. Schmitt <schmittjoh@gmail.com> | 2011-05-30 14:09:16 +0200 |
commit | 2acac06004a24699d9a5c257d143446272b88d38 (patch) | |
tree | 99d9e75be619152970a5c556d8273ec98a84cda4 | |
parent | 2112f62c023f07d333cf319f012973fb5832b51f (diff) | |
download | symfony-security-2acac06004a24699d9a5c257d143446272b88d38.zip symfony-security-2acac06004a24699d9a5c257d143446272b88d38.tar.gz symfony-security-2acac06004a24699d9a5c257d143446272b88d38.tar.bz2 |
[Security] fixes a possible bug when username is an integer
-rw-r--r-- | Acl/Domain/UserSecurityIdentity.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Acl/Domain/UserSecurityIdentity.php b/Acl/Domain/UserSecurityIdentity.php index e3564da..d81eaaf 100644 --- a/Acl/Domain/UserSecurityIdentity.php +++ b/Acl/Domain/UserSecurityIdentity.php @@ -40,7 +40,7 @@ final class UserSecurityIdentity implements SecurityIdentityInterface throw new \InvalidArgumentException('$class must not be empty.'); } - $this->username = $username; + $this->username = (string) $username; $this->class = $class; } |