symfony/symfony — pull request #12597 by giosh94mhz (2014-11-28 16:43:46+00:00)
Title: Fix misleading TokenInterface docblock 2.3

| Q | A
| ------------- | ---
| Bug fix? | no
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets |
| License | MIT
| Doc PR |

I've found the docblock for `TokenInterface::getUser` misleading. By reading it I've written something like:
```php
$username = (string) $token->getUser();
```
This actually doesn't work, since `UserInterface` doesn't implements `__toString` and I have some instance of `AdvancedUser` (coming from InMemory provider).

If the token always return a `UserInterface` or string, then my fix is ok.

[fix my PR #12596]