Skip to content

Commit 5dec4ca

Browse files
committed
Fix quotes in exception messages
1 parent 2971f7f commit 5dec4ca

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Validator/StateMachineValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function validate(Definition $definition, $name)
4545

4646
$initialPlaces = $definition->getInitialPlaces();
4747
if (2 <= \count($initialPlaces)) {
48-
throw new InvalidDefinitionException(sprintf('The state machine "%s" can not store many places. But the definition has %s initial places. Only one is supported.', $name, \count($initialPlaces)));
48+
throw new InvalidDefinitionException(sprintf('The state machine "%s" can not store many places. But the definition has %d initial places. Only one is supported.', $name, \count($initialPlaces)));
4949
}
5050
}
5151
}

Validator/WorkflowValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function validate(Definition $definition, $name)
5252

5353
$initialPlaces = $definition->getInitialPlaces();
5454
if (2 <= \count($initialPlaces)) {
55-
throw new InvalidDefinitionException(sprintf('The marking store of workflow "%s" can not store many places. But the definition has %s initial places. Only one is supported.', $name, \count($initialPlaces)));
55+
throw new InvalidDefinitionException(sprintf('The marking store of workflow "%s" can not store many places. But the definition has %d initial places. Only one is supported.', $name, \count($initialPlaces)));
5656
}
5757
}
5858
}

0 commit comments

Comments
 (0)