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

changing transformers $value checks to use empty() #30

Merged
merged 1 commit into from
Jun 11, 2016

Conversation

jaimz22
Copy link
Contributor

@jaimz22 jaimz22 commented Jun 10, 2016

Instead of simple null checks. key's can't (shouldn't) be anything that empty() would return true for.

Simply checking for null === $value means that an empty string was being tried as the key during transformation to an entity. Other values such as 0 should not be used as keys in a database either. changing the empty() fixes this and prevents an erroneous form validation error.

…null checks. key's can't (shouldn't) be anything that empty() would return true for.
@tetranz tetranz merged commit d8a8390 into tetranz:master Jun 11, 2016
@tetranz
Copy link
Owner

tetranz commented Jun 11, 2016

That makes sense, thanks.

Merged.

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

2 participants