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

Rules following present are not checked after an empty value #108

Open
ThHareau opened this issue Jan 7, 2020 · 1 comment
Open

Rules following present are not checked after an empty value #108

ThHareau opened this issue Jan 7, 2020 · 1 comment

Comments

@ThHareau
Copy link
Contributor

ThHareau commented Jan 7, 2020

For example:

$validation = $this->validator->validate([
    'must_present_field' => '',
], [
    'must_present_field' => 'present|array',
]);

is passing the validation, whereas it should not.

One option to fix this issue is to set the present rule as required. I'll provide a PR using this.

@BafS
Copy link

BafS commented Apr 20, 2020

@emsifa any update ? Is this repo still alive ?

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

No branches or pull requests

2 participants