We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1863bd4 commit 5b87767Copy full SHA for 5b87767
Authentication/Token/AbstractToken.php
@@ -41,7 +41,7 @@ public function __construct(array $roles = [])
41
if (\is_string($role)) {
42
$role = new Role($role);
43
} elseif (!$role instanceof RoleInterface) {
44
- 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)));
45
}
46
47
$this->roles[] = $role;
0 commit comments