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

Bug: Commands that require the use of validation return an error #6457

Closed
michalsn opened this issue Aug 30, 2022 · 2 comments
Closed

Bug: Commands that require the use of validation return an error #6457

michalsn opened this issue Aug 30, 2022 · 2 comments
Labels
bug Verified issues on the current code behavior or pull requests that will fix them

Comments

@michalsn
Copy link
Member

PHP Version

8.0

CodeIgniter4 Version

4.2.5 / develop

CodeIgniter4 Installation Method

Composer (using codeigniter4/appstarter)

Which operating systems have you tested for this bug?

macOS

Which server did you use?

cli

Database

What happened?

Using validation in the Command ends with an error.

E.g.

CLI::prompt('Variable', null, 'required');

Steps to Reproduce

Run the command:

php spark make:migration

and then provide a name for the migration.

After confirming the name, you will get an error, and the command won't be executed.

Expected Output

No errors.

Anything else?

A bug was introduced to the system/Validation/FileRules.php here: b53d482

The idea of checking this should be revisited.

@michalsn michalsn added the bug Verified issues on the current code behavior or pull requests that will fix them label Aug 30, 2022
@datamweb
Copy link
Contributor

Related to: #6452

@michalsn
Copy link
Member Author

Thanks, I missed it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Verified issues on the current code behavior or pull requests that will fix them
Projects
None yet
Development

No branches or pull requests

2 participants