Skip to content

Commit

Permalink
Merge pull request #8071 from kenjis/refactor-Filters-array_merge
Browse files Browse the repository at this point in the history
[4.5] refactor: Filters by rector
  • Loading branch information
kenjis authored Oct 22, 2023
2 parents 0093e68 + 4a28d01 commit b972d98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/Filters/Filters.php
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ protected function processAliasesToClass(string $position)
}

if (is_array($this->config->aliases[$alias])) {
$filtersClass = array_merge($filtersClass, $this->config->aliases[$alias]);
$filtersClass = [...$filtersClass, ...$this->config->aliases[$alias]];
} else {
$filtersClass[] = $this->config->aliases[$alias];
}
Expand Down

0 comments on commit b972d98

Please sign in to comment.