Skip to content

Commit f91c348

Browse files
committedMar 16, 2020
Merge branch '4.4' into 5.0
* 4.4: Fix quotes in exception messages Fix quotes in exception messages Fix quotes in exception messages
2 parents 9a8ea8f + 5dec4ca commit f91c348

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed
 

‎EventListener/GuardListener.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ private function getVariables(GuardEvent $event): array
7777
$token = $this->tokenStorage->getToken();
7878

7979
if (null === $token) {
80-
throw new InvalidTokenConfigurationException(sprintf('There are no tokens available for workflow %s.', $event->getWorkflowName()));
80+
throw new InvalidTokenConfigurationException(sprintf('There are no tokens available for workflow "%s".', $event->getWorkflowName()));
8181
}
8282

8383
$variables = [

‎Validator/StateMachineValidator.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function validate(Definition $definition, string $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

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function validate(Definition $definition, string $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)
Please sign in to comment.