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

Docs should be updated for lengthBetween #58

Closed
asnyder opened this issue Feb 12, 2014 · 4 comments
Closed

Docs should be updated for lengthBetween #58

asnyder opened this issue Feb 12, 2014 · 4 comments

Comments

@asnyder
Copy link

asnyder commented Feb 12, 2014

There is no more lengthBetween. According to the code one just adds another parameter to length for lengthBetween functionality. This is confusing as the README still lists lengthBetween but if you try lengthBetween it'll throw an addRule error.

@abdoosilver
Copy link

For those who needs ;)

$v->rules( [ 'lengthBetween' => [
[ 'user_telephone', 0, 45 ],
[ 'user_postcode', 0, 45 ],
[ 'first_name', 0, 100 ],
[ 'last_name', 0, 100 ],
] ] );

@roman02
Copy link

roman02 commented Apr 10, 2014

Confusing... one said that using lengthBetween throws an exception, and another described how to use the rule. So, which is it?

@ghost
Copy link

ghost commented Apr 10, 2014

This is confusing as the README still lists lengthBetween but if you try lengthBetween it'll throw an addRule error.

This feature is not yet in a release, and for sure this error occurs.
As for the duplication of functional, then there's nothing I can say.

@ghost
Copy link

ghost commented Apr 11, 2014

As for the duplication of functional, then there's nothing I can say.

For length we will get the following message: must be longer than %d
For length between: must be between %d and %d characters

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

4 participants