diff --git a/extensions/tags/src/Search/Filter/TagFilter.php b/extensions/tags/src/Search/Filter/TagFilter.php index 2446cf5025..5c82c6bfde 100644 --- a/extensions/tags/src/Search/Filter/TagFilter.php +++ b/extensions/tags/src/Search/Filter/TagFilter.php @@ -43,6 +43,8 @@ public function filter(SearchState $state, string|array $value, bool $negate): v protected function constrain(Builder $query, string|array $rawSlugs, bool $negate, User $actor): void { + $rawSlugs = (array) $rawSlugs; + $inputSlugs = $this->asStringArray($rawSlugs); foreach ($inputSlugs as $orSlugs) {