fix typo
This commit is contained in:
parent
cbb9d01b6c
commit
523f5c04ab
@ -41,7 +41,7 @@ abstract class AbstractToken implements TokenInterface
|
|||||||
if (\is_string($role)) {
|
if (\is_string($role)) {
|
||||||
$role = new Role($role);
|
$role = new Role($role);
|
||||||
} elseif (!$role instanceof RoleInterface) {
|
} elseif (!$role instanceof RoleInterface) {
|
||||||
throw new \InvalidArgumentException(sprintf('$roles must be an array of strings, Role instances, but got %s.', \gettype($role)));
|
throw new \InvalidArgumentException(sprintf('$roles must be an array of strings or Role instances, but got %s.', \gettype($role)));
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->roles[] = $role;
|
$this->roles[] = $role;
|
||||||
|
Reference in New Issue
Block a user