Skip to content

Commit

Permalink
shorter boolean check
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas committed May 30, 2016
1 parent 644a742 commit 363ff8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ORM/Rule/ExistsIn.php
Expand Up @@ -160,7 +160,7 @@ protected function _checkPartialSchemaNulls($entity, $source)
{
$schema = $source->schema();
foreach ($this->_fields as $field) {
if ($schema->isNullable($field) === true && $entity->get($field) === null) {
if ($schema->isNullable($field) && $entity->get($field) === null) {
return true;
}
}
Expand Down

0 comments on commit 363ff8e

Please sign in to comment.