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 undefined constant STDIN error with Artisan::call during a request #48559

Merged
merged 1 commit into from
Sep 27, 2023

Conversation

jessarcher
Copy link
Member

@jessarcher jessarcher commented Sep 26, 2023

This PR fixes a bug introduced in #48468 where an "Undefined constant" error would occur in environments where a command is used in an environment where STDIN is not defined. For example, when using Artisan::call in the request lifecycle.

Fixes laravel/prompts#86

@taylorotwell taylorotwell merged commit 8d4bc1c into 10.x Sep 27, 2023
21 of 22 checks passed
@taylorotwell taylorotwell deleted the conditional-stdin-constant branch September 27, 2023 01:29
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.

STDIN complain
2 participants