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

View File

@ -359,10 +359,10 @@ abstract class GroupMembershipResolver
if (array_key_exists($name, $this->groupMap)) { if (array_key_exists($name, $this->groupMap)) {
return $this->groupMap[$name]; return $this->groupMap[$name];
} else { } else {
throw new InvalidArgumentException( throw new InvalidArgumentException(sprintf(
'Unable to lookup the group name for "%s"', 'Unable to lookup the group name for "%s"',
$name $name
); ));
} }
} }