src/Model/Model.php
protected function filterUriInstance($uri): string
    {
        if ($uri instanceof UriInterface) {
            return (string) $uri;
        }

        if (is_string($uri)) {
            return (string) \One\createUriFromString($uri);
        }

        return '';
    }
protected function filterUriInstance($uri): string
    {
        if ($uri instanceof UriInterface) {
            return (string) $uri;
        }

        if (is_string($uri)) {
            return (string) \One\createUriFromString($uri);
        }

        return '';
    }
protected function filterUriInstance ( $ uri ) : string { if ( $ uri instanceof UriInterface ) { return ( string ) $ uri ; } if ( is_string ( $ uri ) ) { return ( string ) \ One \ createUriFromString ( $ uri ) ; } return '' ; }
Make Sure Uri is a Psr\Http\Message\UriInterface instance

@param \Psr\Http\Message\UriInterface|string|null $uri
Make Sure Uri is a Psr \ Http \ Message \ UriInterface instance