public static function isRelativePath($uri): bool
    {
        $uri = self::filterUri($uri);
        $null = $uri instanceof Psr7UriInterface ? '' : null;

        return $null === $uri->getScheme()
            && $null === $uri->getAuthority()
            && '/' !== ($uri->getPath()[0] ?? '');
    }
public static function isRelativePath($uri): bool
    {
        $uri = self::filterUri($uri);
        $null = $uri instanceof Psr7UriInterface ? '' : null;

        return $null === $uri->getScheme()
            && $null === $uri->getAuthority()
            && '/' !== ($uri->getPath()[0] ?? '');
    }
public static function isRelativePath ( $ uri ) : bool { $ uri = self :: filterUri ( $ uri ) ; $ null = $ uri instanceof Psr7UriInterface ? '' : null ; return $ null === $ uri -> getScheme ( ) && $ null === $ uri -> getAuthority ( ) && '/' !== ( $ uri -> getPath ( ) [ 0 ] ?? '' ) ; }
Tell whether the URI represents a relative path.

@param Psr7UriInterface|UriInterface $uri
Tell whether the URI represents a relative path .