Skip to content

Commit cf049b5

Browse files
committed
[Config] Changes after code review
1 parent 5c32f60 commit cf049b5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Symfony/Component/Config/Definition/Builder/ArrayNodeDefinition.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ public function find(string $nodePath): NodeDefinition
536536
: substr($nodePath, 0, $pathSeparatorPos);
537537

538538
if (null === $node = ($this->children[$firstPathSegment] ?? null)) {
539-
throw new \RuntimeException(sprintf('Node with name "%s" does not exist in the current node "%s"!', $firstPathSegment, $this->name));
539+
throw new \RuntimeException(sprintf('Node with name "%s" does not exist in the current node "%s".', $firstPathSegment, $this->name));
540540
}
541541

542542
if (false === $pathSeparatorPos) {

src/Symfony/Component/Config/Tests/Definition/Builder/ArrayNodeDefinitionTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ public function testCannotBeEmptyOnConcreteNode()
362362
public function testFindShouldThrowExceptionIfNodeDoesNotExistInRootNode()
363363
{
364364
$this->expectException(\RuntimeException::class);
365-
$this->expectExceptionMessage('Node with name "child" does not exist in the current node "root"!');
365+
$this->expectExceptionMessage('Node with name "child" does not exist in the current node "root".');
366366

367367
$rootNode = new ArrayNodeDefinition('root');
368368
$rootNode
@@ -374,7 +374,7 @@ public function testFindShouldThrowExceptionIfNodeDoesNotExistInRootNode()
374374
$rootNode->find('child');
375375
}
376376

377-
public function testFindShouldHandleComplexConfigurationProbably()
377+
public function testFindShouldHandleComplexConfigurationProperly()
378378
{
379379
$rootNode = new ArrayNodeDefinition('root');
380380
$rootNode
@@ -413,7 +413,7 @@ public function testFindShouldHandleComplexConfigurationProbably()
413413
$this->assertNode('transports', ArrayNodeDefinition::class, $mailerNode->find('transports'));
414414
}
415415

416-
public function testFindShouldWorkProbablyForNonDefaultPathSeparator()
416+
public function testFindShouldWorkProperlyForNonDefaultPathSeparator()
417417
{
418418
$rootNode = new ArrayNodeDefinition('root');
419419
$rootNode

0 commit comments

Comments
 (0)