Fix small typo in Exception message

This commit is contained in:
Menno Holtkamp 2019-10-21 17:20:49 +02:00 committed by Nicolas Grekas
parent b38bde9cb1
commit 7c2b974e26

View File

@ -37,7 +37,7 @@ class StateMachineValidator implements DefinitionValidatorInterface
// Enforcing uniqueness of the names of transitions starting at each node
$from = reset($froms);
if (isset($transitionFromNames[$from][$transition->getName()])) {
throw new InvalidDefinitionException(sprintf('A transition from a place/state must have an unique name. Multiple transitions named "%s" from place/state "%s" where found on StateMachine "%s". ', $transition->getName(), $from, $name));
throw new InvalidDefinitionException(sprintf('A transition from a place/state must have an unique name. Multiple transitions named "%s" from place/state "%s" were found on StateMachine "%s".', $transition->getName(), $from, $name));
}
$transitionFromNames[$from][$transition->getName()] = true;