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

Date rule string or array #51

Open
Delpfine opened this issue Jul 24, 2016 · 0 comments
Open

Date rule string or array #51

Delpfine opened this issue Jul 24, 2016 · 0 comments

Comments

@Delpfine
Copy link

Delpfine commented Jul 24, 2016

 $val->addField('date2')
            ->date('d-m-Y');

I`m get error "Illegal string offset 'format'"; in /vendor/fuelphp/validation/src/Rule/Date.php at line 47

Maybe you should use

 $val->addField('date2')
            ->date(['format' =>'d-m-Y']);

correct documentation, or correct the problem in the class Date.php $format = $parameters['format'];

Delpfine added a commit to Delpfine/validation that referenced this issue Jul 24, 2016
@emlynwest emlynwest mentioned this issue Jul 24, 2016
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

1 participant