Skip to content

Commit 5796c81

Browse files
Ma27xabbuh
authored andcommitted
NullOutput should be passed to $command->run()
as $command#execute() is protected, the NullOutput should be passed to $command#run() as that's the public method being invoked when calling an existing command.
1 parent 09a3381 commit 5796c81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/console/introduction.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ returns the returned code from the command (return value from command's
552552

553553
If you want to suppress the output of the executed command, pass a
554554
:class:`Symfony\\Component\\Console\\Output\\NullOutput` as the second
555-
argument to ``$command->execute()``.
555+
argument to ``$command->run()``.
556556

557557
.. caution::
558558

0 commit comments

Comments
 (0)