This commit is contained in:
2025-06-16 18:23:14 +03:00
parent a482ab3c7e
commit a78b699a5e
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()); return $builder->orWhere($this->argument->field, ">", $this->formatValue());
} }
private function formatValue(): int|float private function formatValue(): int|float|string
{ {
$value = trim($this->argument->value); $value = trim($this->argument->value);
if (is_numeric($value)) { if (is_numeric($value)) {
@@ -23,7 +23,7 @@ readonly class GreaterThanEquals implements IBuilderConverter
return $builder->orWhere($this->argument->field, ">=", $this->formatValue()); return $builder->orWhere($this->argument->field, ">=", $this->formatValue());
} }
private function formatValue(): int|float private function formatValue(): int|float|string
{ {
$value = trim($this->argument->value); $value = trim($this->argument->value);
if (is_numeric($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()); return $builder->orWhere($this->argument->field, "<", $this->formatValue());
} }
private function formatValue(): int|float private function formatValue(): int|float|string
{ {
$value = trim($this->argument->value); $value = trim($this->argument->value);
if (is_numeric($value)) { if (is_numeric($value)) {
@@ -23,7 +23,7 @@ readonly class LessThanEquals implements IBuilderConverter
return $builder->orWhere($this->argument->field, "<=", $this->formatValue()); return $builder->orWhere($this->argument->field, "<=", $this->formatValue());
} }
private function formatValue(): int|float private function formatValue(): int|float|string
{ {
$value = trim($this->argument->value); $value = trim($this->argument->value);
if (is_numeric($value)) { if (is_numeric($value)) {