Fix broken filter factory (Close #57).

This commit is contained in:
David Molineus
2018-06-20 08:24:22 +02:00
parent 9f0b34a53b
commit 2d0221a90a

View File

@@ -51,7 +51,7 @@ final class FilterFactory
public function create(string $filter, string $values): Filter public function create(string $filter, string $values): Filter
{ {
if (isset($this->filters[$filter])) { if (isset($this->filters[$filter])) {
return call_user_func([$filter, 'fromRequest'], $values); return call_user_func([$this->filters[$filter], 'fromRequest'], $values);
} }
throw new \RuntimeException(sprintf('Creating filter failed. Unsupported filter "%s"', $filter)); throw new \RuntimeException(sprintf('Creating filter failed. Unsupported filter "%s"', $filter));