Skip to content

Commit

Permalink
use toString helper
Browse files Browse the repository at this point in the history
  • Loading branch information
tischsoic committed Apr 8, 2024
1 parent 8cd55ed commit 2358dae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/Query/Content/CriterionVisitor/IsContainer.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ public function visit(Criterion $criterion, CriterionVisitor $subVisitor = null)
));
}

return 'content_type_is_container_b:' . ($value[0] ? 'true' : 'false');
return 'content_type_is_container_b:' . $this->toString($value[0]);
}
}
2 changes: 1 addition & 1 deletion src/lib/Query/Location/CriterionVisitor/IsContainer.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ public function visit(Criterion $criterion, CriterionVisitor $subVisitor = null)
));
}

return 'is_container_b:' . ($value[0] ? 'true' : 'false');
return 'is_container_b:' . $this->toString($value[0]);
}
}

0 comments on commit 2358dae

Please sign in to comment.