Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[10.x] Fix prompt rendering after callSilent #47929

Merged
merged 1 commit into from Aug 2, 2023

Conversation

jessarcher
Copy link
Member

This PR solves laravel/prompts#22, where prompts are not displayed in the parent command after the callSilent method has been used to call a child command.

This is caused by the child command replacing the OutputInterface used by Prompts with an instance of NullOutput, which is not reset afterwards.

Note that if the child command uses Symfony or Laravel prompts, the prompts will not output anything to the console, but they will still wait for user input. In these cases you would likely want to pass --no-interaction to the child command, however, there is an outstanding issue when using Laravel Prompts where prompts in the parent command will then lose interactivity as well. I will PR a fix for that separately.

@taylorotwell taylorotwell merged commit 4e6a5ad into 10.x Aug 2, 2023
22 checks passed
@taylorotwell taylorotwell deleted the prompt-reset-after-call-silent branch August 2, 2023 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants