where($this->argument->field, ">", $this->formatValue()); } public function toOrQueryBuilder(Builder $builder): Builder { return $builder->orWhere($this->argument->field, ">", $this->formatValue()); } private function formatValue(): int|float { $value = trim($this->argument->value); if (is_numeric($value)) { return str_contains($value, ".") ? floatval($value) : intval($value); } return $value; } }