Skip to content

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.

1 participant