diff --git a/src/ORM/Rule/ExistsIn.php b/src/ORM/Rule/ExistsIn.php index cbcdfeb6a0e..17fd9e5f74a 100644 --- a/src/ORM/Rule/ExistsIn.php +++ b/src/ORM/Rule/ExistsIn.php @@ -110,9 +110,7 @@ public function __invoke(EntityInterface $entity, array $options) 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)) {