Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas committed Mar 13, 2020
1 parent 1863bd4 commit 5b87767
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Authentication/Token/AbstractToken.php
Expand Up @@ -41,7 +41,7 @@ public function __construct(array $roles = [])
if (\is_string($role)) {
$role = new Role($role);
} 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;
Expand Down

0 comments on commit 5b87767

Please sign in to comment.