laravel / prompts

Beautiful and user-friendly forms for your command-line PHP applications.
https://laravel.com/docs/prompts
MIT License
533 stars 94 forks source link

STDIN complain #86

Closed oriceon closed 1 year ago

oriceon commented 1 year ago

Laravel Prompts Version

v0.1.9

Laravel Version

10.25.0

PHP Version

8.2.10

Operating System & Version

Linux

Terminal Application

Linux

Description

Hi. After upgrading laravel from 10.24.0 to 10.25.0 witch has laravel/prompts v0.1.9, when i want to call a command from controller Artisan::call('app:set-version'); i get this error:

[2023-09-26 19:26:53] production.ERROR: Undefined constant "Illuminate\Console\Concerns\STDIN" {"userId":40009,"exception":"[object] (Error(code: 0): Undefined constant \"Illuminate\\Console\\Concerns\\STDIN\" at /home/crm/public_html/vendor/laravel/framework/src/Illuminate/Console/Concerns/ConfiguresPrompts.php:27)
....

Steps To Reproduce

Artisan::call('any-command')

jessarcher commented 1 year ago

Hey, thanks for reporting. I have a fix for this at https://github.com/laravel/framework/pull/48559 that will be released very soon.

lk77 commented 1 year ago

Glad to see it's already fixed !