Fix
This commit is contained in:
@@ -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)) {
|
||||||
|
|||||||
@@ -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)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user