Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cast to string the user identifier (#297)
* Cast to string the user identifier Since the DH\Auditor\User\User constructor requires the first argument to be string or null, I have an UserInterface implementation where $tokenUser->getId() returns int, so there will be an exception. The check is on DH\AuditorBundle\User\UserProvider: if (method_exists($tokenUser, 'getId')) { $identifier = $tokenUser->getId(); }. To be safe, it is better to cast the getId() value to string, IMHO. * Fix PHP-CS-Fixer cast_spaces issue
- Loading branch information