src/Viserio/Component/Routing/Route.php
protected function parseWhere($name, ?string $expression): array
    {
        if (\is_string($name)) {
            return [$name => $expression];
        }

        $arr = [];

        foreach ($name as $paramName) {
            $arr[$paramName] = $expression;
        }

        return $arr;
    }
protected function parseWhere($name, ?string $expression): array
    {
        if (\is_string($name)) {
            return [$name => $expression];
        }

        $arr = [];

        foreach ($name as $paramName) {
            $arr[$paramName] = $expression;
        }

        return $arr;
    }
Parse arguments to the where method into an array.

@param array|string $name
@param null|string  $expression

@return array