use sprintf() for InvalidArgumentException
This commit is contained in:
parent
7360e7070f
commit
596e352761
|
@ -359,10 +359,10 @@ abstract class GroupMembershipResolver
|
|||
if (array_key_exists($name, $this->groupMap)) {
|
||||
return $this->groupMap[$name];
|
||||
} else {
|
||||
throw new InvalidArgumentException(
|
||||
throw new InvalidArgumentException(sprintf(
|
||||
'Unable to lookup the group name for "%s"',
|
||||
$name
|
||||
);
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue