Skip to content

Commit 700401a

Browse files
Merge branch '3.3' into 3.4
* 3.3: Update JsonBundleReader.php [HttpKernel] Clean test directory on tear down [Console] Remove useless http-kernel dev dep Fix testHtml method with regexp Fixed some param/return annotations in PHPDOC blocks. [Workflow] fixed InvalidDefinitionException message for StateMachineValidator
2 parents 6730fcb + bf252f2 commit 700401a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Validator/StateMachineValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function validate(Definition $definition, $name)
3131
// Make sure that each transition has exactly one FROM
3232
$froms = $transition->getFroms();
3333
if (1 !== count($froms)) {
34-
throw new InvalidDefinitionException(sprintf('A transition in StateMachine can only have one input. But the transition "%s" in StateMachine "%s" has %d inputs.', $transition->getName(), $name, count($transition->getTos())));
34+
throw new InvalidDefinitionException(sprintf('A transition in StateMachine can only have one input. But the transition "%s" in StateMachine "%s" has %d inputs.', $transition->getName(), $name, count($froms)));
3535
}
3636

3737
// Enforcing uniqueness of the names of transitions starting at each node

0 commit comments

Comments
 (0)