Skip to content

Commit

Permalink
Don't use empty()
Browse files Browse the repository at this point in the history
Refs #9009
  • Loading branch information
markstory committed Jun 20, 2016
1 parent 1fb128b commit 97e071f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ORM/Rule/ExistsIn.php
Expand Up @@ -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),
Expand Down

0 comments on commit 97e071f

Please sign in to comment.