src/Viserio/Component/Routing/Route.php
public function gatherMiddleware(): array
    {
        if (isset($this->action['middleware'])) {
            $this->withMiddleware($this->action['middleware']);
        }

        return \array_unique(
            \array_merge(
                $this->middleware,
                $this->getControllerMiddleware()
            ),
            \SORT_REGULAR
        );
    }
public function gatherMiddleware(): array
    {
        if (isset($this->action['middleware'])) {
            $this->withMiddleware($this->action['middleware']);
        }

        return \array_unique(
            \array_merge(
                $this->middleware,
                $this->getControllerMiddleware()
            ),
            \SORT_REGULAR
        );
    }
{@inheritdoc}