Skip to content

Commit 7d243db

Browse files
committed
minor #9797 Fix missing ; in the samples (SpacePossum)
This PR was merged into the 3.4 branch. Discussion ---------- Fix missing `;` in the samples Fix the sample PHP code so the syntax is valid :) Commits ------- da8f6ea Fix missing `;` in the samples
2 parents b2c4d31 + da8f6ea commit 7d243db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

console/lazy_commands.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ which will be responsible for returning ``Command`` instances::
2121
use Symfony\Component\Console\CommandLoader\FactoryCommandLoader;
2222

2323
$commandLoader = new FactoryCommandLoader(array(
24-
'app:heavy' => function () { return new HeavyCommand() },
24+
'app:heavy' => function () { return new HeavyCommand(); },
2525
));
2626

2727
$application = new Application();
@@ -51,7 +51,7 @@ array of ``Command`` factories as its only constructor argument::
5151
use Symfony\Component\Console\CommandLoader\FactoryCommandLoader;
5252

5353
$commandLoader = new FactoryCommandLoader(array(
54-
'app:foo' => function () { return new FooCommand() },
54+
'app:foo' => function () { return new FooCommand(); },
5555
'app:bar' => array(BarCommand::class, 'create'),
5656
));
5757

0 commit comments

Comments
 (0)