Skip to content
Permalink
Browse files

Don't use empty()

Refs #9009
  • Loading branch information...
markstory committed Jun 20, 2016
1 parent 1fb128b commit 97e071f5ae43d680e47e7d07edbafc6e7afe6ca2
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/ORM/Rule/ExistsIn.php
@@ -65,7 +65,7 @@ public function __invoke(EntityInterface $entity, array $options)
{
if (is_string($this->_repository)) {
$repository = $options['repository']->association($this->_repository);
if (empty($repository)) {
if (!$repository) {
throw new RuntimeException(sprintf(
"ExistsIn rule for '%s' is invalid. The '%s' association is not defined.",
implode(', ', $this->_fields),

0 comments on commit 97e071f

Please sign in to comment.
You can’t perform that action at this time.