Skip to content

Commit 20d80c3

Browse files
committed
minor #4916 Fixes for 2.3 branch (ifdattic)
This PR was merged into the 2.3 branch. Discussion ---------- Fixes for 2.3 branch | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | 2.3 | Fixed tickets | Commits ------- 7065dd1 Remove horizontal scrollbar 4d400bd Fix typos
2 parents d7acccf + 7065dd1 commit 20d80c3

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

components/config/definition.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ By changing a string value into an associative array with ``name`` as the key::
506506
->arrayNode('connection')
507507
->beforeNormalization()
508508
->ifString()
509-
->then(function($v) { return array('name'=> $v); })
509+
->then(function ($v) { return array('name' => $v); })
510510
->end()
511511
->children()
512512
->scalarNode('name')->isRequired()

components/console/introduction.rst

+5-3
Original file line numberDiff line numberDiff line change
@@ -431,9 +431,11 @@ method::
431431

432432
$command = $application->find('demo:greet');
433433
$commandTester = new CommandTester($command);
434-
$commandTester->execute(
435-
array('command' => $command->getName(), 'name' => 'Fabien', '--iterations' => 5)
436-
);
434+
$commandTester->execute(array(
435+
'command' => $command->getName(),
436+
'name' => 'Fabien',
437+
'--iterations' => 5,
438+
));
437439

438440
$this->assertRegExp('/Fabien/', $commandTester->getDisplay());
439441
}

0 commit comments

Comments
 (0)