Browse Source

shorter boolean checks

Jonas 9 years ago
parent
commit
a248513cdf
1 changed files with 1 additions and 3 deletions
  1. 1 3
      src/ORM/Rule/ExistsIn.php

+ 1 - 3
src/ORM/Rule/ExistsIn.php

@@ -110,9 +110,7 @@ class ExistsIn
             return true;
         }
 
-        if ($this->_options['allowPartialNulls'] === true
-            && $this->_checkPartialSchemaNulls($entity, $source) === true
-        ) {
+        if ($this->_options['allowPartialNulls'] && $this->_checkPartialSchemaNulls($entity, $source)) {
             return true;
         }
         if ($this->_fieldsAreNull($entity, $source)) {