Skip to content

Commit

Permalink
added more concrete ternary operator check
Browse files Browse the repository at this point in the history
  • Loading branch information
ViniTou committed Dec 10, 2024
1 parent 273fe26 commit 8220076
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function convert(Query $query, array $languageSettings = [])
{
$params = [
'q' => '{!lucene}' . $this->criterionVisitor->visit($query->query),

Check failure on line 70 in src/lib/Query/Common/QueryConverter/NativeQueryConverter.php

View workflow job for this annotation

GitHub Actions / Unit tests (8.3)

Parameter #1 $criterion of method Ibexa\Contracts\Solr\Query\CriterionVisitor::visit() expects Ibexa\Contracts\Core\Repository\Values\Content\Query\CriterionInterface, Ibexa\Contracts\Core\Repository\Values\Content\Query\CriterionInterface|null given.
'fq' => '{!lucene}' . ($query->filter ? $this->criterionVisitor->visit($query->filter) : ''),
'fq' => '{!lucene}' . ($query->filter !== null ? $this->criterionVisitor->visit($query->filter) : ''),
'sort' => $this->getSortClauses($query->sortClauses),
'start' => $query->offset,
'rows' => $query->limit,
Expand Down

0 comments on commit 8220076

Please sign in to comment.