@@ -75,7 +75,7 @@ this order:
75753. ``interact(array &$arguments, array &$options): void `` also receives the
7676 raw arguments and options by reference. This is where you prompt the user
7777 for missing input, set values conditionally, or abort early. This hook is
78- skipped when the command is non-interactive — see :ref: `non-interactive-mode `.
78+ skipped when the command is non-interactive ( see :ref: `non-interactive-mode `) .
79794. **Bind & validate. ** The framework maps the raw input to the definitions
8080 you declared in ``configure() ``, applies defaults, and rejects input that
8181 violates the definitions (missing required argument, unknown option, array
@@ -189,20 +189,20 @@ Non-Interactive Mode
189189====================
190190
191191Every modern command accepts ``--no-interaction `` / ``-N `` out of the box.
192- When the flag is present — or when the command is otherwise non-interactive —
192+ When the flag is present, or when the command is otherwise non-interactive,
193193the ``interact() `` hook is skipped entirely and the command proceeds straight
194194to bind, validate, and ``execute() ``.
195195
196196Programmatically, the state is exposed through two public methods on
197197``AbstractCommand ``:
198198
199- - ``isInteractive(): bool `` — reports the current state.
200- - ``setInteractive(bool $interactive): static `` — pins the state, overriding
199+ - ``isInteractive(): bool ``: reports the current state.
200+ - ``setInteractive(bool $interactive): static ``: pins the state, overriding
201201 both the CLI flag and TTY detection. Returns ``$this `` for chaining.
202202
203203The resolved state follows this precedence:
204204
205- 1. An explicit ``setInteractive(bool) `` call wins — useful when a command
205+ 1. An explicit ``setInteractive(bool) `` call wins. Useful when a command
206206 must force a specific mode for safety.
2072072. Otherwise, the CLI flag ``--no-interaction `` / ``-N `` forces non-interactive state.
2082083. Otherwise, **STDIN ** is probed: if it is not a TTY (piped input, cron,
@@ -217,11 +217,11 @@ sub-command's ``$options`` wins over that propagation.
217217The propagation can be overridden with the ``$noInteractionOverride ``
218218parameter of ``call() ``:
219219
220- - ``null `` (default) — propagate the parent's state.
221- - ``true `` — force the sub-command non-interactive regardless of the parent.
222- - ``false `` — strip any inherited ``--no-interaction `` so the sub-command
223- resolves its own state. Note: TTY detection can still downgrade the
224- sub-command if STDIN is not a TTY.
220+ - ``null `` (default): propagate the parent's state.
221+ - ``true ``: force the sub-command non-interactive regardless of the parent.
222+ - ``false ``: remove any forwarded ``--no-interaction `` / `` -N `` from the
223+ child `` $options `` so the sub-command resolves its own state. Note: TTY
224+ detection can still downgrade the sub-command if STDIN is not a TTY.
225225
226226******************
227227Inside execute()
@@ -539,8 +539,8 @@ covered in the sections above and are not listed here.
539539 :param array $options: Options to forward, keyed by long name, shortcut, or negation.
540540 :param bool|null $noInteractionOverride: Override the sub-command's interactive state.
541541 ``null `` propagates the parent's state (default);
542- ``true `` forces non-interactive; ``false `` strips
543- any inherited ``--no-interaction `` flag .
542+ ``true `` forces non-interactive; ``false `` removes
543+ any forwarded ``--no-interaction `` from `` $options `` .
544544 :returns: The exit code returned by the called command.
545545
546546 Invokes another modern command. The arguments and options go through
0 commit comments