Skip to content

Conversation

@kenjis
Copy link
Member

@kenjis kenjis commented Jun 28, 2022

Description

  • add sample code
  • add test cases

Checklist:

  • Securely signed commits
  • [] Component(s) with PHPDoc blocks, only if necessary or adds value
  • [] Unit testing, with >80% coverage
  • User guide updated
  • Conforms to style guide

@kenjis kenjis added the documentation Pull requests for documentation only label Jun 28, 2022
// or
$validation->setRules([
'username' => 'required',
'password' => ['required', 'min_length[10]'],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't realize we supported this format 😂 Good addition.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With this format, probably we can use | in regex.

@kenjis kenjis merged commit adf2dc6 into codeigniter4:develop Jun 28, 2022
@kenjis kenjis deleted the fix-docs-Validation-setRules branch June 28, 2022 11:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Pull requests for documentation only

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants