We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25dadba commit db3aa7dCopy full SHA for db3aa7d
src/Filters/GlobalFilters/GlobalFilters.php
@@ -54,6 +54,10 @@ public function toArray(): array
54
55
public function findFilter(string $key): ?Filter
56
{
57
- return $this->filterContainer()->findFilterHandler($key);
+ return collect($this->getFilters())
58
+ ->firstWhere(fn (GlobalRequiredFilter $filter) => class_exists($key)
59
+ ? $filter instanceof $key
60
+ : $filter->getKey() === $key
61
+ );
62
}
63
0 commit comments