Skip to content

Commit 93eaf84

Browse files
mvoriseknicolas-grekas
authored andcommitted
Fix "can not" spelling
1 parent 511aa4b commit 93eaf84

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

ContainerBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -846,7 +846,7 @@ public function setAlias(string $alias, $id)
846846
}
847847

848848
if ($alias === (string) $id) {
849-
throw new InvalidArgumentException(sprintf('An alias can not reference itself, got a circular reference on "%s".', $alias));
849+
throw new InvalidArgumentException(sprintf('An alias cannot reference itself, got a circular reference on "%s".', $alias));
850850
}
851851

852852
unset($this->definitions[$alias], $this->removedIds[$alias]);

ParameterBag/ParameterBagInterface.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ interface ParameterBagInterface
2424
/**
2525
* Clears all parameters.
2626
*
27-
* @throws LogicException if the ParameterBagInterface can not be cleared
27+
* @throws LogicException if the ParameterBagInterface cannot be cleared
2828
*/
2929
public function clear();
3030

3131
/**
3232
* Adds parameters to the service container parameters.
3333
*
34-
* @throws LogicException if the parameter can not be added
34+
* @throws LogicException if the parameter cannot be added
3535
*/
3636
public function add(array $parameters);
3737

@@ -61,7 +61,7 @@ public function remove(string $name);
6161
*
6262
* @param array|bool|string|int|float|null $value The parameter value
6363
*
64-
* @throws LogicException if the parameter can not be set
64+
* @throws LogicException if the parameter cannot be set
6565
*/
6666
public function set(string $name, $value);
6767

Tests/ContainerBuilderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ public function testAliases()
290290
$builder->setAlias('foobar', 'foobar');
291291
$this->fail('->setAlias() throws an InvalidArgumentException if the alias references itself');
292292
} catch (\InvalidArgumentException $e) {
293-
$this->assertEquals('An alias can not reference itself, got a circular reference on "foobar".', $e->getMessage(), '->setAlias() throws an InvalidArgumentException if the alias references itself');
293+
$this->assertEquals('An alias cannot reference itself, got a circular reference on "foobar".', $e->getMessage(), '->setAlias() throws an InvalidArgumentException if the alias references itself');
294294
}
295295

296296
try {

0 commit comments

Comments
 (0)