diff --git a/src/lib/Query/Content/CriterionVisitor/ContentName.php b/src/lib/Query/Content/CriterionVisitor/ContentName.php index 192966dc..d7025e1c 100644 --- a/src/lib/Query/Content/CriterionVisitor/ContentName.php +++ b/src/lib/Query/Content/CriterionVisitor/ContentName.php @@ -34,7 +34,7 @@ public function __construct( public function canVisit(Criterion $criterion): bool { - return $criterion instanceof Criterion\ContentNameCriterion + return $criterion instanceof Criterion\ContentName && $criterion->operator === Criterion\Operator::LIKE; }