Skip to content

Commit 65768ab

Browse files
mvoriseknicolas-grekas
authored andcommitted
Fix "can not" spelling
1 parent 55a1afe commit 65768ab

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Tests/Validator/StateMachineValidatorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public function testValid()
108108
public function testWithTooManyInitialPlaces()
109109
{
110110
$this->expectException(InvalidDefinitionException::class);
111-
$this->expectExceptionMessage('The state machine "foo" can not store many places. But the definition has 2 initial places. Only one is supported.');
111+
$this->expectExceptionMessage('The state machine "foo" cannot store many places. But the definition has 2 initial places. Only one is supported.');
112112
$places = range('a', 'c');
113113
$transitions = [];
114114
$definition = new Definition($places, $transitions, ['a', 'b']);

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, 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 %d initial places. Only one is supported.', $name, \count($initialPlaces)));
48+
throw new InvalidDefinitionException(sprintf('The state machine "%s" cannot 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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@ public function validate(Definition $definition, string $name)
4646

4747
foreach ($definition->getTransitions() as $transition) {
4848
if (1 < \count($transition->getTos())) {
49-
throw new InvalidDefinitionException(sprintf('The marking store of workflow "%s" can not store many places. But the transition "%s" has too many output (%d). Only one is accepted.', $name, $transition->getName(), \count($transition->getTos())));
49+
throw new InvalidDefinitionException(sprintf('The marking store of workflow "%s" cannot store many places. But the transition "%s" has too many output (%d). Only one is accepted.', $name, $transition->getName(), \count($transition->getTos())));
5050
}
5151
}
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 %d initial places. Only one is supported.', $name, \count($initialPlaces)));
55+
throw new InvalidDefinitionException(sprintf('The marking store of workflow "%s" cannot 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)