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

Fixed exception when creating a resource controller #38

Merged
merged 2 commits into from
Mar 21, 2020

Conversation

rpouls
Copy link
Contributor

@rpouls rpouls commented Mar 19, 2020

On PHP 7.4 - Laravel 7.2 I got an STDIN constant exception when creating a ResourceController. Since we are not running this in a console, we can't give input anyway. So I would suggest to add this to all Artisan::call() calls in the "make:" namespace.

Exeption:

message: "Use of undefined constant STDIN - assumed 'STDIN' (this will throw an Error in a future version of PHP)"
exception: "ErrorException"
file: "vendor/symfony/console/Helper/QuestionHelper.php"
line: 118

On Laravel PHP 7.4 - Laravel 7.2 I got an STDIN constant exception when creating a ResourceController. Since we are not running this in a console, we can't give input anyway. So I would suggest to add this to all Artisan::call() calls.
To make it more clear, use the full --quiet option
@mtolhuys mtolhuys merged commit c69a2e8 into mtolhuys:master Mar 21, 2020
@mtolhuys mtolhuys mentioned this pull request Mar 21, 2020
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.

2 participants