Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG-0.x.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# CHANGELOG for 0.x
This changelog references the relevant changes done in 0.x versions.

## v0.3.1
* BUG :: Fix invalid string casting on Numbr in ElasticaQueryBuilder.

## v0.3.0
__BREAKING CHANGES__
Expand Down
2 changes: 1 addition & 1 deletion src/Builder/ElasticaQueryBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ protected function addTermToQuery(string $method, Node $node, ?Field $field = nu
return;
}

$value = $this->lowerCaseTerms ? strtolower((string)$node->getValue()) : $node->getValue();
$value = $this->lowerCaseTerms && !$node instanceof Numbr ? strtolower((string)$node->getValue()) : $node->getValue();
$fieldName = $this->inField() ? $field->getName() : $this->defaultFieldName;

if ($this->inField() && !$this->inSubquery()) {
Expand Down