Skip to content

Commit

Permalink
Typehinting for array values or null (#1822)
Browse files Browse the repository at this point in the history
  • Loading branch information
lrljoe authored Aug 4, 2024
1 parent 8b3b223 commit f672b72
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Traits/Helpers/FilterHelpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public function getFilterByKey(string $key)

#[On('setFilter')]
#[On('set-filter')]
public function setFilter(string $filterKey, mixed $value): void
public function setFilter(string $filterKey, string|array|null $value): void
{
$this->appliedFilters[$filterKey] = $this->filterComponents[$filterKey] = $value;

Expand Down
2 changes: 1 addition & 1 deletion src/Traits/WithEvents.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function clearSortEvent(): void
}

// No Longer Used
public function setFilterEvent(string $filter, string $value): void
public function setFilterEvent(string $filter, string|array|null $value): void
{
$this->setFilter($filter, $value);
}
Expand Down

0 comments on commit f672b72

Please sign in to comment.