Skip to content

Commit

Permalink
Merge pull request #9637 from bastolen/unreachable-case
Browse files Browse the repository at this point in the history
Fixed impossible statement
  • Loading branch information
npracht committed Feb 5, 2021
2 parents eabbd56 + f805957 commit cd7e257
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/bundles/CoreBundle/Entity/CommonRepository.php
Expand Up @@ -1525,7 +1525,7 @@ protected function buildWhereClauseFromArray($query, array $clauses, $expr = nul
break;
case 'isEmpty':
case 'isNotEmpty':
if ('empty' === $clause['expr']) {
if ('isEmpty' === $clause['expr']) {
$whereClause = $query->expr()->orX(
$query->expr()->eq($column, $query->expr()->literal('')),
$query->expr()->isNull($column)
Expand Down

0 comments on commit cd7e257

Please sign in to comment.