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

Update required-optional.md #196

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

EduardoRoblesCh
Copy link

@EduardoRoblesCh EduardoRoblesCh commented Sep 5, 2020

There is a terrible mistake in this file!!!
In required method, the third parameter (allowEmpty) is false by default:

public function required($key, $name = null, $allowEmpty = false)

And in the optional method is the opposite, allowEmpty is true by default:

public function optional($key, $name = null, $allowEmpty = true)

And this page is explaining exactly the opposite!!

What?

Updated the documentation

Checklist

  • Updated the documentation

Linked issue

link

There is a terrible mistake in this file!!!
In `required` method, the third parameter (`allowEmpty`) is false by default:

```php
public function required($key, $name = null, $allowEmpty = false)
```
And in the `optional method` is the opposite, `allowEmpty` is true by default:
```php
public function optional($key, $name = null, $allowEmpty = true)
```

And this page is explaining exactly the opposite!!
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

Successfully merging this pull request may close these issues.

None yet

1 participant