diff --git a/components/console/introduction.rst b/components/console/introduction.rst index 13fb3578fc8..bbd99f07390 100644 --- a/components/console/introduction.rst +++ b/components/console/introduction.rst @@ -85,7 +85,7 @@ an ``Application`` and adds commands to it:: use Symfony\Component\Console\Application; $application = new Application(); - $application->add(new GreetCommand); + $application->add(new GreetCommand()); $application->run(); Test the new console command by running the following