use sprintf() for InvalidArgumentException

This commit is contained in:
Mantis Development 2019-11-28 22:38:21 +00:00 committed by Thomas Gelf
parent 7360e7070f
commit 596e352761
1 changed files with 2 additions and 2 deletions

View File

@ -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
);
));
}
}