src/UriHandler.php
private function interpolate(string $string, array $values): string
    {
        $replaces = [];
        foreach ($values as $key => $value) {
            $value = (is_array($value) || $value instanceof \Closure) ? '' : $value;
            $replaces["<{$key}>"] = is_object($value) ? (string)$value : $value;
        }

        return strtr($string, $replaces + self::URI_FIXERS);
    }
private function interpolate(string $string, array $values): string
    {
        $replaces = [];
        foreach ($values as $key => $value) {
            $value = (is_array($value) || $value instanceof \Closure) ? '' : $value;
            $replaces["<{$key}>"] = is_object($value) ? (string)$value : $value;
        }

        return strtr($string, $replaces + self::URI_FIXERS);
    }
private function interpolate ( string $ string , array $ values ) : string { $ replaces = [ ] ; foreach ( $ values as $ key => $ value ) { $ value = ( is_array ( $ value ) || $ value instanceof \ Closure ) ? '' : $ value ; $ replaces [ "<{$key}>" ] = is_object ( $ value ) ? ( string ) $ value : $ value ; } return strtr ( $ string , $ replaces + self :: URI_FIXERS ) ; }
Interpolate string with given values.

@param string $string
@param array  $values
@return string
Interpolate string with given values .