protected function getFiltered(
        array $displayers,
        ServerRequestInterface $request,
        Throwable $original,
        Throwable $transformed,
        int $code
    ): array {
        /** @var \Viserio\Component\Contract\Exception\Filter[] $sortedFilters */
        $sortedFilters = [];

        \ksort($this->filters);

        \array_walk_recursive($this->filters, static function ($filter, $key) use (&$sortedFilters): void {
            $sortedFilters[$key] = $filter;
        });

        foreach ($sortedFilters as $filter) {
            $displayers = $filter->filter($displayers, $request, $original, $transformed, $code);
        }

        return \array_values($displayers);
    }
protected function getFiltered(
        array $displayers,
        ServerRequestInterface $request,
        Throwable $original,
        Throwable $transformed,
        int $code
    ): array {
        /** @var \Viserio\Component\Contract\Exception\Filter[] $sortedFilters */
        $sortedFilters = [];

        \ksort($this->filters);

        \array_walk_recursive($this->filters, static function ($filter, $key) use (&$sortedFilters): void {
            $sortedFilters[$key] = $filter;
        });

        foreach ($sortedFilters as $filter) {
            $displayers = $filter->filter($displayers, $request, $original, $transformed, $code);
        }

        return \array_values($displayers);
    }
protected function getFiltered ( array $ displayers , ServerRequestInterface $ request , Throwable $ original , Throwable $ transformed , int $ code ) : array { /** @var \Viserio\Component\Contract\Exception\Filter[] $sortedFilters */ $ sortedFilters = [ ] ; \ ksort ( $ this -> filters ) ; \ array_walk_recursive ( $ this -> filters , static function ( $ filter , $ key ) use ( & $ sortedFilters ) : void { $ sortedFilters [ $ key ] = $ filter ; } ) ; foreach ( $ sortedFilters as $ filter ) { $ displayers = $ filter -> filter ( $ displayers , $ request , $ original , $ transformed , $ code ) ; } return \ array_values ( $ displayers ) ; }
Get the filtered list of displayers.

@param \Viserio\Component\Contract\Exception\Displayer[] $displayers
@param \Psr\Http\Message\ServerRequestInterface          $request
@param \Throwable                                        $original
@param \Throwable                                        $transformed
@param int                                               $code

@return \Viserio\Component\Contract\Exception\Displayer[]
Get the filtered list of displayers .