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

[bugfix] Required allowing empty wrongfully didn't accept a null value. #39

Conversation

berry-langerak
Copy link
Member

What?

The required('foo', 'bar', true) wrongfully didn't accept ['foo' => null]. This has been fixed in this PR. See the tests for proof of the fix.

$this->assertEquals([], $this->validator->getMessages());
}


Copy link

Choose a reason for hiding this comment

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

Dat amount of enter though

Copy link
Contributor

Choose a reason for hiding this comment

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

I hate newline phobia. Embrace the space

@NickBelhomme
Copy link
Contributor

+1

@rick-nu
Copy link

rick-nu commented May 22, 2015

Merging after Scrutinizer says it's OK!

rick-nu pushed a commit that referenced this pull request May 22, 2015
…he-same-as-empty

[bugfix] Required allowing empty wrongfully didn't accept a null value.
@rick-nu rick-nu merged commit 3e7cf13 into particle-php:master May 22, 2015
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

3 participants