Skip to content

Commit

Permalink
Fix phpstan issue
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexVanderbist committed Oct 3, 2024
1 parent bc2daf1 commit 64f0453
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Filters/FiltersOperator.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function __invoke(Builder $query, $value, string $property)

return;
} elseif ($this->filterOperator->isDynamic()) {
$filterOperator = $this->getDynamicFilterOperator($value, $this);
$filterOperator = $this->getDynamicFilterOperator($value);
$this->removeDynamicFilterOperatorFromValue($value, $filterOperator);
}

Expand All @@ -48,7 +48,6 @@ protected function getDynamicFilterOperator(string $value): FilterOperator
{
$filterOperator = FilterOperator::EQUAL;

// match filter operators and assign the filter operator.
foreach (FilterOperator::cases() as $filterOperatorCase) {
if (str_starts_with($value, $filterOperatorCase->value) && ! $filterOperatorCase->isDynamic()) {
$filterOperator = $filterOperatorCase;
Expand Down

0 comments on commit 64f0453

Please sign in to comment.