Merge pull request 'Fix gte' (#24) from Fixing-date-&-datetime-compare-bugs into dev

Reviewed-on: #24
This commit was merged in pull request #24.
This commit is contained in:
2025-06-16 15:48:36 +00:00
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ readonly class GreaterThan implements IBuilderConverter
return $builder->orWhere($this->argument->field, ">", $this->formatValue());
}
private function formatValue(): int|float
private function formatValue(): int|float|string
{
$value = trim($this->argument->value);
if (is_numeric($value)) {
@@ -23,7 +23,7 @@ readonly class GreaterThanEquals implements IBuilderConverter
return $builder->orWhere($this->argument->field, ">=", $this->formatValue());
}
private function formatValue(): int|float
private function formatValue(): int|float|string
{
$value = trim($this->argument->value);
if (is_numeric($value)) {
+1 -1
View File
@@ -23,7 +23,7 @@ readonly class LessThan implements IBuilderConverter
return $builder->orWhere($this->argument->field, "<", $this->formatValue());
}
private function formatValue(): int|float
private function formatValue(): int|float|string
{
$value = trim($this->argument->value);
if (is_numeric($value)) {
@@ -23,7 +23,7 @@ readonly class LessThanEquals implements IBuilderConverter
return $builder->orWhere($this->argument->field, "<=", $this->formatValue());
}
private function formatValue(): int|float
private function formatValue(): int|float|string
{
$value = trim($this->argument->value);
if (is_numeric($value)) {