Skip to content

Commit 2d82245

Browse files
committed
minor #6685 NullOutput should be passed to $command->run() (Ma27)
This PR was submitted for the master branch but it was merged into the 2.7 branch instead (closes #6685). Discussion ---------- 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. Commits ------- 5796c81 NullOutput should be passed to $command->run()
2 parents 09a3381 + 5796c81 commit 2d82245

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)