src/Request/Api/BaseRequest.php
private function generateUrl(): string
    {
        static $re = '/\%5B\d+\%5D/m';
        static $subst = '%5B%5D';

        $query = [];
        /**
         * @var IArgument
         */
        foreach ($this->arguments as $key => $value) {
            $query[$key] = $value->toPrimitive();
        }

        foreach ($this->mergeableArguments as $key => $value) {
            $query[$key] = $value->toPrimitive();
        }

        foreach ($this->stackableArguments as $key => $value) {
            $query[$key] = $value->toArray();
        }

        $queryArg = http_build_query($query, null, '&', PHP_QUERY_RFC3986);

        $fullUrl = $this->routeUrl() . '?' . preg_replace($re, $subst, $queryArg);

        return $fullUrl;
    }
private function generateUrl(): string
    {
        static $re = '/\%5B\d+\%5D/m';
        static $subst = '%5B%5D';

        $query = [];
        /**
         * @var IArgument
         */
        foreach ($this->arguments as $key => $value) {
            $query[$key] = $value->toPrimitive();
        }

        foreach ($this->mergeableArguments as $key => $value) {
            $query[$key] = $value->toPrimitive();
        }

        foreach ($this->stackableArguments as $key => $value) {
            $query[$key] = $value->toArray();
        }

        $queryArg = http_build_query($query, null, '&', PHP_QUERY_RFC3986);

        $fullUrl = $this->routeUrl() . '?' . preg_replace($re, $subst, $queryArg);

        return $fullUrl;
    }
private function generateUrl ( ) : string { static $ re = '/\%5B\d+\%5D/m' ; static $ subst = '%5B%5D' ; $ query = [ ] ; /**
         * @var IArgument
         */ foreach ( $ this -> arguments as $ key => $ value ) { $ query [ $ key ] = $ value -> toPrimitive ( ) ; } foreach ( $ this -> mergeableArguments as $ key => $ value ) { $ query [ $ key ] = $ value -> toPrimitive ( ) ; } foreach ( $ this -> stackableArguments as $ key => $ value ) { $ query [ $ key ] = $ value -> toArray ( ) ; } $ queryArg = http_build_query ( $ query , null , '&' , PHP_QUERY_RFC3986 ) ; $ fullUrl = $ this -> routeUrl ( ) . '?' . preg_replace ( $ re , $ subst , $ queryArg ) ; return $ fullUrl ; }
Generate the URL

Takes care of removing the "include[0]" and replace by "include[]"

@return string
Generate the URL